add options nodeIntegration,webviewTag into the demo
This commit is contained in:
parent
1bfb560b0a
commit
ea8a21f9ba
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue