From 9b224115a53c2a946a0edc3707c8b4b06e72ff6b Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Thu, 16 Jan 2020 08:16:23 -0800 Subject: [PATCH] fix infinite load screen introduced with Electron 6 changes --- src/main/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index 54d73f1..cf9e4c0 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -20,6 +20,9 @@ const createWindow = ({search = null, url = 'index.html', ...browserWindowOption const window = new BrowserWindow({ useContentSize: true, show: false, + webPreferences: { + nodeIntegration: true + }, ...browserWindowOptions }); const webContents = window.webContents;