2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-09-22 09:39:02 +00:00

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

View File

@ -1,5 +1,6 @@
var electron = require('electron'); var electron = require('electron');
var Menu = electron.Menu; var Menu = electron.Menu;
var shell = electron.shell;
module.exports = function (app, mainWindow) { module.exports = function (app, mainWindow) {
if (Menu.getApplicationMenu()) if (Menu.getApplicationMenu())
@ -119,27 +120,15 @@ module.exports = function (app, mainWindow) {
role: 'help', role: 'help',
submenu: [ submenu: [
{ {
label: 'Learn More', label: 'Learn More About Nativefier',
click: function() { shell.openExternal('http://electron.atom.io') } click: function() { shell.openExternal('https://github.com/jiahaog/nativefier') }
}, },
{ {
label: 'Documentation', label: 'Report an Issue',
click: function() { click: function() { shell.openExternal('https://github.com/jiahaog/nativefier/issues') }
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') }
} }
] ]
}, }
]; ];
if (process.platform == 'darwin') { if (process.platform == 'darwin') {