Fix menubar issues

This commit is contained in:
Marquis Kurt 2019-05-12 14:25:05 -04:00
parent eda5b6b281
commit 370cad7893
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
// Electron script to run Hyperspace as an app
// © 2018 Hyperspace developers. Licensed under Apache 2.0.
const { app, menu, protocol, BrowserWindow, shell } = require('electron');
const { app, Menu, protocol, BrowserWindow, shell } = require('electron');
const windowStateKeeper = require('electron-window-state');
const { autoUpdater } = require('electron-updater');
const path = require('path');
@ -152,6 +152,7 @@ function createWindow() {
* Create the menu bar and attach it to a window
*/
function createMenubar() {
let menu = Menu;
// Create a menu bar template
const menuBar = [
{