mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-14 03:33:52 +01:00
20 lines
362 B
JavaScript
20 lines
362 B
JavaScript
|
const { app, BrowserWindow, Menu } = require("electron");
|
||
|
Menu.setApplicationMenu(false);
|
||
|
function createWindow() {
|
||
|
const win = new BrowserWindow({
|
||
|
show: false,
|
||
|
webPreferences: {
|
||
|
devTools: false,
|
||
|
},
|
||
|
});
|
||
|
|
||
|
win.removeMenu();
|
||
|
win.maximize();
|
||
|
win.loadFile("index.html");
|
||
|
win.show();
|
||
|
}
|
||
|
|
||
|
app.whenReady().then(() => {
|
||
|
createWindow();
|
||
|
});
|