electron-tabs/demo/app.js

18 lines
435 B
JavaScript
Raw Normal View History

2017-06-27 15:38:44 -05:00
const electron = require('electron');
const app = electron.app;
app.on('ready', function () {
2020-02-04 05:13:57 -05:00
const mainWindow = new electron.BrowserWindow({
webPreferences: {
nodeIntegration: true,
2022-03-22 14:07:09 -05:00
contextIsolation: false,
2020-02-04 05:13:57 -05:00
webviewTag: true
}
});
mainWindow.loadURL('file://' + __dirname + '/electron-tabs.html');
mainWindow.on('ready-to-show', function () {
mainWindow.show();
mainWindow.focus();
});
2017-06-27 15:38:44 -05:00
});