From 20820e64baf6da4fb28118907c4b0318fec00341 Mon Sep 17 00:00:00 2001 From: Magnus Hauge Bakke Date: Wed, 30 Mar 2016 19:40:18 +0200 Subject: [PATCH] Fix bug when fetcing app name for darwin menus --- electron-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron-main.js b/electron-main.js index 0eab40e..8ca5ae6 100644 --- a/electron-main.js +++ b/electron-main.js @@ -114,7 +114,7 @@ ]; if (process.platform == 'darwin') { - var name = require('electron').remote.app.getName(); + var name = app.getName(); template.unshift({ label: name, submenu: [