From f7378ac4d407017d4af16963c5d62628bdc80059 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Wed, 14 Aug 2019 10:36:15 -0300 Subject: [PATCH] full screen electron, no bar --- main.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 164f984..9108863 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ const { app, BrowserWindow } = require('electron') require('electron-debug')({ showDevTools: true }); -const path = require('path') -const url = require('url') +const path = require('path'); +const url = require('url'); let win; @@ -11,7 +11,8 @@ function createWindow () { width: 600, height: 600, backgroundColor: '#ffffff', - icon: `file://${__dirname}/www/assets/logo.png` + icon: `file://${__dirname}/www/assets/logo.png`, + fullscreen: true }) win.loadURL(url.format({ pathname: path.join(__dirname, '/www/index.html'), protocol: 'file:', slashes: true })) @@ -20,6 +21,8 @@ function createWindow () { win.on('closed', function () { win = null }) + + win.removeMenu(); } // Create window on electron intialization -- 1.9.1