From b4be8e37a6283d32cffa31db8e08cdcc62d34288 Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Tue, 19 Jan 2016 20:33:25 +0800 Subject: [PATCH] Fix bug where `shell` is not imported, and add links to github repo --- app/buildMenu.js | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/app/buildMenu.js b/app/buildMenu.js index ef14e2b..3faf0ee 100644 --- a/app/buildMenu.js +++ b/app/buildMenu.js @@ -1,5 +1,6 @@ var electron = require('electron'); var Menu = electron.Menu; +var shell = electron.shell; module.exports = function (app, mainWindow) { if (Menu.getApplicationMenu()) @@ -119,27 +120,15 @@ module.exports = function (app, mainWindow) { role: 'help', submenu: [ { - label: 'Learn More', - click: function() { shell.openExternal('http://electron.atom.io') } + label: 'Learn More About Nativefier', + click: function() { shell.openExternal('https://github.com/jiahaog/nativefier') } }, { - label: 'Documentation', - click: function() { - shell.openExternal( - `https://github.com/atom/electron/tree/v${process.versions.electron}/docs#readme` - ) - } - }, - { - label: 'Community Discussions', - click: function() { shell.openExternal('https://discuss.atom.io/c/electron') } - }, - { - label: 'Search Issues', - click: function() { shell.openExternal('https://github.com/atom/electron/issues') } + label: 'Report an Issue', + click: function() { shell.openExternal('https://github.com/jiahaog/nativefier/issues') } } ] - }, + } ]; if (process.platform == 'darwin') {