From 937117cdcdf12ab3d339da004013bfd5e3327aee Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 10 Feb 2017 10:13:08 -0500 Subject: handle non debug case of fs arg #450 --- electron_js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'electron_js') 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. -- cgit v1.2.3