Skip to content

Commit 9b22411

Browse files
author
Christopher Willis-Ford
committed
fix infinite load screen introduced with Electron 6 changes
1 parent 99040d1 commit 9b22411

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const createWindow = ({search = null, url = 'index.html', ...browserWindowOption
2020
const window = new BrowserWindow({
2121
useContentSize: true,
2222
show: false,
23+
webPreferences: {
24+
nodeIntegration: true
25+
},
2326
...browserWindowOptions
2427
});
2528
const webContents = window.webContents;

0 commit comments

Comments
 (0)