summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-02-10 10:13:08 -0500
committerPliable Pixels <pliablepixels@gmail.com>2017-02-10 10:13:08 -0500
commit937117cdcdf12ab3d339da004013bfd5e3327aee (patch)
tree5388c470807c7ad574893b7a70762b9749dfeebc
parentbe3633a02f62f47a718898d03bb1bbd13c2dbde2 (diff)
handle non debug case of fs arg #450
-rw-r--r--electron_js/main.js4
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.