diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-29 12:02:07 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-29 12:02:07 -0400 |
| commit | c7d27a3d1f7aedba428a0bd974fceafea3295129 (patch) | |
| tree | 2d0a160bc9bf4877f677b68fddbe682bbb627fd3 /electron_js/main.js | |
| parent | b6fcd1b264856cedfacb9dec6e2348bdcfbb24cd (diff) | |
#542 changed packing strategy - no idea why asar is not reflecting on windows
Diffstat (limited to 'electron_js/main.js')
| -rw-r--r-- | electron_js/main.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/electron_js/main.js b/electron_js/main.js index 84c2cb70..3f56b332 100644 --- a/electron_js/main.js +++ b/electron_js/main.js @@ -6,8 +6,9 @@ const {dialog} = require('electron') // Module to create native browser window. const {BrowserWindow} = electron; var isFs = false; -var argv = require('minimist')(process.argv.slice(2)); +var argv = require('minimist')(process.argv.slice(1)); +console.log ("ARGV="+JSON.stringify(argv)); if (argv.path) { console.log ("PATH SET TO "+argv.path); @@ -39,8 +40,10 @@ if (shouldQuit) { function createWindow() { + const mx = globalShortcut.register('CommandOrControl+Alt+F', () => { - console.log('CommandOrControl+F is pressed'); + + console.log('Command Or Control+F is pressed'); isFs = !isFs; win.setFullScreen(isFs); }) |
