mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Guard for atom windows w/ no webContents
This commit is contained in:
@@ -87,7 +87,7 @@ class AtomWindow
|
||||
hash: encodeURIComponent(JSON.stringify(loadSettings))
|
||||
|
||||
getLoadSettings: ->
|
||||
if @browserWindow.webContents.loaded
|
||||
if @browserWindow.webContents?.loaded
|
||||
hash = url.parse(@browserWindow.webContents.getUrl()).hash.substr(1)
|
||||
JSON.parse(decodeURIComponent(hash))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user