Remove application menu, we don't use it.
parent
39376f133b
commit
1dc19611fb
|
|
@ -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:',
|
||||
|
|
|
|||
Loading…
Reference in New Issue