Use WebContents.prototype.isLoading instead of defunct .loaded

Fixes cmd-o interaction.
This commit is contained in:
Nathan Sobo
2015-09-26 16:38:51 -06:00
parent 0f7c852883
commit 5f2b5a16df

View File

@@ -88,7 +88,7 @@ class AtomWindow
hash: encodeURIComponent(JSON.stringify(loadSettings))
getLoadSettings: ->
if @browserWindow.webContents?.loaded
if @browserWindow.webContents? and not @browserWindow.webContents.isLoading()
hash = url.parse(@browserWindow.webContents.getUrl()).hash.substr(1)
JSON.parse(decodeURIComponent(hash))