Commit 583900a5a874eb9991958dad1041e2c8cbee6c48
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master(efernandez) See merge request !11
Showing
1 changed file
 
Show diff stats
main.js
| 1 | 1 | const { app, BrowserWindow } = require('electron') | 
| 2 | 2 | require('electron-debug')({ showDevTools: true }); | 
| 3 | -const path = require('path') | |
| 4 | -const url = require('url') | |
| 3 | +const path = require('path'); | |
| 4 | +const url = require('url'); | |
| 5 | 5 | |
| 6 | 6 | let win; | 
| 7 | 7 | |
| ... | ... | @@ -11,7 +11,8 @@ function createWindow () { | 
| 11 | 11 | width: 600, | 
| 12 | 12 | height: 600, | 
| 13 | 13 | backgroundColor: '#ffffff', | 
| 14 | - icon: `file://${__dirname}/www/assets/logo.png` | |
| 14 | + icon: `file://${__dirname}/www/assets/logo.png`, | |
| 15 | + fullscreen: true | |
| 15 | 16 | }) | 
| 16 | 17 | |
| 17 | 18 | win.loadURL(url.format({ pathname: path.join(__dirname, '/www/index.html'), protocol: 'file:', slashes: true })) | 
| ... | ... | @@ -20,6 +21,8 @@ function createWindow () { | 
| 20 | 21 | win.on('closed', function () { | 
| 21 | 22 | win = null | 
| 22 | 23 | }) | 
| 24 | + | |
| 25 | + win.removeMenu(); | |
| 23 | 26 | } | 
| 24 | 27 | |
| 25 | 28 | // Create window on electron intialization |