This commit is contained in:
Your Name
2021-11-05 00:14:11 -04:00
parent 7b950bd7d9
commit 74739af031
2 changed files with 6 additions and 3 deletions

View File

@@ -1,11 +1,13 @@
const { app, BrowserWindow, Menu, globalShortcut, shell } = require("electron");
const debug = false;
Menu.setApplicationMenu(false);
function createWindow() {
const win = new BrowserWindow({
show: false,
webPreferences: {
// devTools: true,
devTools: debug,
},
});
@@ -13,7 +15,8 @@ function createWindow() {
win.maximize();
win.loadFile("index.html");
win.show();
// win.webContents.openDevTools();
if(debug)
win.webContents.openDevTools();
globalShortcut.register("f5", function () {
win.loadFile("index.html");
});