diff options
| -rw-r--r-- | electron_js/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/electron_js/main.js b/electron_js/main.js index d2983f2e..2e6941cf 100644 --- a/electron_js/main.js +++ b/electron_js/main.js @@ -27,7 +27,9 @@ if (shouldQuit) { function createWindow() { // Create the browser window. win = new BrowserWindow({width: 1024, height: 900, webPreferences:{nodeIntegration:false}}); - if (process.argv.slice(2)=='fs') + + // fs will be arg 1 if its not run in electron debug mode + if (process.argv.slice(1)=='fs' || process.argv.slice(2)=='fs') win.setFullScreen(true); // and load the index.html of the app. |
