From 1becce407771613d0815b0476b10a9741b55e306 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 31 Jan 2017 07:04:39 +0530 Subject: added `fs` option to start full screen #436 --- electron_js/main.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'electron_js') 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`); -- cgit v1.2.3