mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Guard against null rootView
This will be the case for the config window.
This commit is contained in:
@@ -13,7 +13,7 @@ class WindowEventHandler
|
||||
@subscribe $(window), 'focus', -> $("body").removeClass('is-blurred')
|
||||
@subscribe $(window), 'blur', -> $("body").addClass('is-blurred')
|
||||
@subscribe $(window), 'window:open-path', (event, pathToOpen) ->
|
||||
rootView.open(pathToOpen) unless fsUtils.isDirectory(pathToOpen)
|
||||
rootView?.open(pathToOpen) unless fsUtils.isDirectory(pathToOpen)
|
||||
|
||||
@subscribeToCommand $(window), 'window:toggle-full-screen', => atom.toggleFullScreen()
|
||||
@subscribeToCommand $(window), 'window:close', =>
|
||||
|
||||
Reference in New Issue
Block a user