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