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 } });