summaryrefslogtreecommitdiff
path: root/electron_js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'electron_js/main.js')
-rw-r--r--electron_js/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/electron_js/main.js b/electron_js/main.js
index 4a1125f1..d2983f2e 100644
--- a/electron_js/main.js
+++ b/electron_js/main.js
@@ -27,6 +27,8 @@ if (shouldQuit) {
function createWindow() {
// Create the browser window.
win = new BrowserWindow({width: 1024, height: 900, webPreferences:{nodeIntegration:false}});
+ if (process.argv.slice(2)=='fs')
+ win.setFullScreen(true);
// and load the index.html of the app.
win.loadURL(`file://${__dirname}/index.html`);