aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Amine Mouafik <amine@mouafik.fr>2019-11-27 23:14:53 +0700
committerLibravatar Amine Mouafik <amine@mouafik.fr>2019-11-27 23:14:53 +0700
commit9b2d8af05ec142eac69aed2c47776c5d8a077af8 (patch)
treed6795870240de809c7720209741a574c6d30aa37 /src
parent#220 Add setTimeout for spellchecker's attachToInput call (diff)
downloadferdium-app-9b2d8af05ec142eac69aed2c47776c5d8a077af8.tar.gz
ferdium-app-9b2d8af05ec142eac69aed2c47776c5d8a077af8.tar.zst
ferdium-app-9b2d8af05ec142eac69aed2c47776c5d8a077af8.zip
Fix TypeError fns is not iterable
Diffstat (limited to 'src')
-rw-r--r--src/index.js6
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