mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Use WebContents.prototype.isLoading instead of defunct .loaded
Fixes cmd-o interaction.
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user