Remove application menu, we don't use it.

master
Håvar Aambø Fosstveit 2019-11-11 09:56:52 +01:00
parent 39376f133b
commit 1dc19611fb
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
const Menu = electron.Menu;
const path = require('path');
const url = require('url');
@ -17,6 +18,8 @@ function createWindow()
webPreferences : { nodeIntegration: true }
});
Menu.setApplicationMenu(null);
const startUrl = process.env.ELECTRON_START_URL || url.format({
pathname : path.join(__dirname, '/../build/index.html'),
protocol : 'file:',