mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-22 19:43:53 +00:00
25 lines
585 B
JavaScript
25 lines
585 B
JavaScript
const electron = require("electron");
|
|
const app = electron.app;
|
|
|
|
app.on("ready", function () {
|
|
const mainWindow = new electron.BrowserWindow({
|
|
titleBarStyle: 'hidden',
|
|
frame: false,
|
|
width: 1300,
|
|
height: 1000,
|
|
titleBarOverlay: { // For Windows and Linux`
|
|
color: '#e7eaed',
|
|
symbolColor: '#696A6C',
|
|
height: 40,
|
|
},
|
|
webPreferences: {
|
|
webviewTag: true
|
|
}
|
|
});
|
|
mainWindow.loadURL("file://" + __dirname + "/electron-tabs.html");
|
|
mainWindow.on("ready-to-show", function () {
|
|
mainWindow.show();
|
|
mainWindow.focus();
|
|
});
|
|
});
|