diff options
author | 2020-01-31 17:24:30 +0100 | |
---|---|---|
committer | 2020-01-31 17:24:30 +0100 | |
commit | 9277d42ee8fd6d9e3eccf948f71c8688f726784e (patch) | |
tree | 6f167ea9eb2ed50a079596048993a79c7aeb9447 /src/index.js | |
parent | Update (diff) | |
parent | Fix lint (diff) | |
download | ferdium-app-9277d42ee8fd6d9e3eccf948f71c8688f726784e.tar.gz ferdium-app-9277d42ee8fd6d9e3eccf948f71c8688f726784e.tar.zst ferdium-app-9277d42ee8fd6d9e3eccf948f71c8688f726784e.zip |
Merge branch 'develop' into start-in-tray
Diffstat (limited to 'src/index.js')
-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 69aae3dde..7bc0be0ea 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -184,8 +184,10 @@ const createWindow = () => { | |||
184 | mainWindow.webContents.on('did-finish-load', () => { | 184 | mainWindow.webContents.on('did-finish-load', () => { |
185 | const fns = onDidLoadFns; | 185 | const fns = onDidLoadFns; |
186 | onDidLoadFns = null; | 186 | onDidLoadFns = null; |
187 | for (const fn of fns) { // eslint-disable-line no-unused-vars | 187 | if (fns) { |
188 | fn(mainWindow); | 188 | for (const fn of fns) { // eslint-disable-line no-unused-vars |
189 | fn(mainWindow); | ||
190 | } | ||
189 | } | 191 | } |
190 | }); | 192 | }); |
191 | 193 | ||