From 370cad7893b9589f3426f79b07584eabf57c7a34 Mon Sep 17 00:00:00 2001 From: Marquis Kurt Date: Sun, 12 May 2019 14:25:05 -0400 Subject: [PATCH] Fix menubar issues --- public/electron.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/electron.js b/public/electron.js index c1ebabd..7900068 100644 --- a/public/electron.js +++ b/public/electron.js @@ -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 = [ {