mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-02-02 11:48:25 +00:00
Fix bug where shell
is not imported, and add links to github repo
This commit is contained in:
parent
9c9fe59ed7
commit
b4be8e37a6
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user