From f29c5b00aefcd68353a8240d13afb092316ef91d Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Mon, 19 Jul 2021 13:30:25 +0200 Subject: [PATCH] Keep nodeIntegration requirement (#120) --- README.md | 1 + demo/app.js | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 97a7504..69d12b4 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ Electron-tabs uses webviews, so you first need to use the following `webPreferen ```js const mainWindow = new electron.BrowserWindow({ webPreferences: { + nodeIntegration: true, webviewTag: true } }); diff --git a/demo/app.js b/demo/app.js index d747f7e..f485185 100644 --- a/demo/app.js +++ b/demo/app.js @@ -4,6 +4,7 @@ const app = electron.app; app.on('ready', function () { const mainWindow = new electron.BrowserWindow({ webPreferences: { + nodeIntegration: true, webviewTag: true } });