electron-tabs/demo/app.js
2022-03-22 20:07:09 +01:00

18 lines
435 B
JavaScript

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