electron-tabs/demo/app.js

25 lines
585 B
JavaScript
Raw Permalink Normal View History

2022-05-23 12:17:06 -05:00
const electron = require("electron");
2017-06-27 15:38:44 -05:00
const app = electron.app;
2022-05-23 12:17:06 -05:00
app.on("ready", function () {
2020-02-04 05:13:57 -05:00
const mainWindow = new electron.BrowserWindow({
2024-12-07 19:49:40 -05:00
titleBarStyle: 'hidden',
frame: false,
width: 1300,
height: 1000,
titleBarOverlay: { // For Windows and Linux`
color: '#e7eaed',
symbolColor: '#696A6C',
height: 40,
},
2020-02-04 05:13:57 -05:00
webPreferences: {
webviewTag: true
}
});
2022-05-23 12:17:06 -05:00
mainWindow.loadURL("file://" + __dirname + "/electron-tabs.html");
mainWindow.on("ready-to-show", function () {
2020-02-04 05:13:57 -05:00
mainWindow.show();
mainWindow.focus();
});
2017-06-27 15:38:44 -05:00
});