Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
add options nodeIntegration,webviewTag into the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kanryu committed Sep 21, 2019
1 parent 1bfb560 commit ea8a21f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion demo/app.js
Expand Up @@ -6,7 +6,12 @@ app.setName('electron-tabs-demo');

app.on('ready', function () {

const mainWindow = new electron.BrowserWindow();
const mainWindow = new electron.BrowserWindow({
webPreferences: {
nodeIntegration: true,
webviewTag: true
}
});
mainWindow.loadURL('file://' + __dirname + '/electron-tabs.html');
mainWindow.on('ready-to-show', function () {
mainWindow.show();
Expand Down

0 comments on commit ea8a21f

Please sign in to comment.