electron debug flag

This commit is contained in:
Olivier Gagnon 2021-11-05 00:19:41 -04:00
parent 74739af031
commit 5d37eecdd6

@ -15,8 +15,7 @@ function createWindow() {
win.maximize();
win.loadFile("index.html");
win.show();
if(debug)
win.webContents.openDevTools();
if (debug) win.webContents.openDevTools();
globalShortcut.register("f5", function () {
win.loadFile("index.html");
});