mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-02-08 22:18: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 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') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user