Skip to content

Commit

Permalink
Remove context isolation.
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller committed Jan 2, 2019
1 parent 51dd371 commit 753ad3d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ app.on('ready', () => {
app.on('web-contents-created', (dc, contents) => {
contents.on('will-attach-webview', (event, webPreferences) => {
webPreferences.nodeIntegration = false;
webPreferences.contextIsolation = true;
});
contents.on('will-navigate', (event, navigationUrl) => {
const parsedUrl = new URL(navigationUrl);
Expand Down
1 change: 0 additions & 1 deletion src/main/mainWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ function createMainWindow(config, options) {

mainWindow.webContents.on('will-attach-webview', (event, webPreferences) => {
webPreferences.nodeIntegration = false;
webPreferences.contextIsolation = true;
});

mainWindow.once('ready-to-show', () => {
Expand Down

0 comments on commit 753ad3d

Please sign in to comment.