Default window state should be empty object.

Setting default window state to empty string would cause the "Error
parsing window state" error in Atom.loadDocumentState.
This commit is contained in:
Cheng Zhao
2014-01-06 20:30:29 +08:00
parent 72744494b8
commit 196e908961

View File

@@ -30,7 +30,7 @@ class AtomWindow
@handleEvents()
loadSettings = _.extend({}, settings)
loadSettings.windowState ?= ''
loadSettings.windowState ?= '{}'
# Only send to the first non-spec window created
if @constructor.includeShellLoadTime and not @isSpec