From 99c8f67910fb33511c4ff8cdbbc22172784cbb97 Mon Sep 17 00:00:00 2001 From: Callum Loh Date: Tue, 22 Nov 2016 22:44:35 +1100 Subject: [PATCH] Fixes #2. Disabled nodeIntegration to fix jQuery (#4) Often ueed by thirdparty IDPs / SAML auth services. --- src/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 4c72279f..4bcda807 100644 --- a/src/app.js +++ b/src/app.js @@ -32,7 +32,10 @@ function createWindow() { title: app.getName(), width: 1280, height: 960, - titleBarStyle: 'hidden-inset' + titleBarStyle: 'hidden-inset', + webPreferences: { + nodeIntegration: false + } }) mainWindow.loadURL('https://mail.google.com')