Fix bug where `shell` is not imported, and add links to github repo

This commit is contained in:
Jia Hao 2016-01-19 20:33:25 +08:00
parent 9c9fe59ed7
commit b4be8e37a6
1 changed files with 6 additions and 17 deletions

View File

@ -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') {