From 0ee3af1d958f54288e643800e5a58db0ce293f30 Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Mon, 25 Mar 2019 19:46:18 -0700 Subject: [PATCH] Insist on nodeIntegration for the main browserWindow for Electron 5.0.0. --- electron/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electron/main.js b/electron/main.js index a1916386..98f1d99f 100644 --- a/electron/main.js +++ b/electron/main.js @@ -94,7 +94,8 @@ function createWindow () { ,show: !config.get('start_minimized') ,acceptFirstMouse: true ,webPreferences: { - partition: 'persist:rambox' + partition: 'persist:rambox', + nodeIntegration: true } });