mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
dimensions could be undefined.
This commit is contained in:
@@ -37,7 +37,7 @@ window.setUpEnvironment = ->
|
||||
requireStylesheet(nativeStylesheetPath)
|
||||
|
||||
dimensions = atom.getWindowState('dimensions')
|
||||
dimensions = defaultWindowDimensions unless dimensions.width and dimensions.height
|
||||
dimensions = defaultWindowDimensions unless dimensions?.width and dimensions?.height
|
||||
window.setDimensions(dimensions)
|
||||
remote.getCurrentWindow().show()
|
||||
$(window).on 'unload', -> atom.setWindowState('dimensions', window.getDimensions())
|
||||
|
||||
Reference in New Issue
Block a user