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.maximize();
win.loadFile("index.html"); win.loadFile("index.html");
win.show(); win.show();
if(debug) if (debug) win.webContents.openDevTools();
win.webContents.openDevTools();
globalShortcut.register("f5", function () { globalShortcut.register("f5", function () {
win.loadFile("index.html"); win.loadFile("index.html");
}); });