From 6bccfcd0a3521dd3b158af3ead3d562f6ee66465 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 9 Jun 2015 16:45:14 -0700 Subject: [PATCH] Guard for atom windows w/ no webContents --- src/browser/atom-window.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/atom-window.coffee b/src/browser/atom-window.coffee index 9b7c35d03..36b194cd0 100644 --- a/src/browser/atom-window.coffee +++ b/src/browser/atom-window.coffee @@ -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))