24 lines
585 B
JavaScript
24 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();
|
|
});
|
|
});
|