Skip to content

Commit

Permalink
take shell straight of electron and updated button/links (#87)
Browse files Browse the repository at this point in the history
* take shell straight of electron and updated button/links

* fix help menu for windows too
  • Loading branch information
samthomson authored and gjtorikian committed Oct 13, 2017
1 parent 3566e13 commit 9348392
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var app = electron.app;
var BrowserWindow = electron.BrowserWindow;
var Menu = electron.Menu;
var crashReporter = electron.crashReporter;
const shell = electron.shell;
var menu, template;

crashReporter.start({
Expand Down Expand Up @@ -163,22 +164,22 @@ app.on('ready', function() {
submenu: [{
label: 'Learn More',
click: function() {
require('shell').openExternal('http://electron.atom.io');
shell.openExternal('http://electron.atom.io');
}
}, {
label: 'Documentation',
click: function() {
require('shell').openExternal('https://github.com/atom/electron/tree/master/docs#readme');
shell.openExternal('https://github.com/atom/electron/tree/master/docs#readme');
}
}, {
label: 'Community Discussions',
click: function() {
require('shell').openExternal('https://discuss.atom.io/c/electron');
shell.openExternal('https://discuss.atom.io/c/electron');
}
}, {
label: 'Search Issues',
click: function() {
require('shell').openExternal('https://github.com/atom/electron/issues');
shell.openExternal('https://github.com/atom/electron/issues');
}
}]
}];
Expand Down Expand Up @@ -227,22 +228,22 @@ app.on('ready', function() {
submenu: [{
label: 'Learn More',
click: function() {
require('shell').openExternal('http://electron.atom.io');
shell.openExternal('http://electron.atom.io');
}
}, {
label: 'Documentation',
click: function() {
require('shell').openExternal('https://github.com/atom/electron/tree/master/docs#readme');
shell.openExternal('https://github.com/atom/electron/tree/master/docs#readme');
}
}, {
label: 'Community Discussions',
click: function() {
require('shell').openExternal('https://discuss.atom.io/c/electron');
shell.openExternal('https://discuss.atom.io/c/electron');
}
}, {
label: 'Search Issues',
click: function() {
require('shell').openExternal('https://github.com/atom/electron/issues');
shell.openExternal('https://github.com/atom/electron/issues');
}
}]
}];
Expand Down

0 comments on commit 9348392

Please sign in to comment.