Commit f7378ac4d407017d4af16963c5d62628bdc80059

Authored by Eric Fernandez
1 parent ce26c30d51
Exists in master

full screen electron, no bar

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
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