diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js index 12ea7f646..6cc547d33 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -181,8 +181,10 @@ const createWindow = () => { | |||
181 | mainWindow.webContents.on('did-finish-load', () => { | 181 | mainWindow.webContents.on('did-finish-load', () => { |
182 | const fns = onDidLoadFns; | 182 | const fns = onDidLoadFns; |
183 | onDidLoadFns = null; | 183 | onDidLoadFns = null; |
184 | for (const fn of fns) { // eslint-disable-line no-unused-vars | 184 | if (fns) { |
185 | fn(mainWindow); | 185 | for (const fn of fns) { // eslint-disable-line no-unused-vars |
186 | fn(mainWindow); | ||
187 | } | ||
186 | } | 188 | } |
187 | }); | 189 | }); |
188 | 190 | ||