Skip to content

Commit

Permalink
removing some unsafe webpreferences
Browse files Browse the repository at this point in the history
  • Loading branch information
IsmaelMartinez committed Oct 12, 2018
1 parent f78c61c commit 44d8a04
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,21 @@ function createWindow(iconPath) {
partition: 'persist:teams',
preload: path.join(__dirname, 'browser', 'index.js'),
nativeWindowOpen: true,
allowRunningInsecureContent: true,
experimentalFeatures: true,
safeDialogs: true,
plugins: true,
nodeIntegration: false,
}
});

windowState.manage(window);
window.eval = global.eval = function () {
throw new Error(`Sorry, this app does not support window.eval().`)
}

return window;
}

app.commandLine.appendSwitch('auth-server-whitelist','*');
app.commandLine.appendSwitch('auth-server-whitelist','*eeghlan.net');
app.commandLine.appendSwitch('enable-ntlm-v2','true');

app.on('ready', () => {
Expand Down

0 comments on commit 44d8a04

Please sign in to comment.