diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-01-31 07:04:39 +0530 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-01-31 07:04:39 +0530 |
| commit | 1becce407771613d0815b0476b10a9741b55e306 (patch) | |
| tree | 1e2d708a974cc5a18e87e523d6a9ddd59dd8f283 /electron_js | |
| parent | 40961460bd4ec4476851bd0212b7e5e31c36a740 (diff) | |
added `fs` option to start full screen #436
Diffstat (limited to 'electron_js')
| -rw-r--r-- | electron_js/main.js | 2 |
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`); |
