Browse Source

added support menu tab with links

ca333-dev
pbca26 8 years ago
parent
commit
e06046f93d
  1. 32
      private/mainmenu.js

32
private/mainmenu.js

@ -1,6 +1,7 @@
const {Menu} = require('electron') const {Menu} = require('electron')
const electron = require('electron') const electron = require('electron')
const app = electron.app const app = electron.app
const {shell} = require('electron')
const template = [ const template = [
{ {
@ -85,10 +86,37 @@ const template = [
}, },
{ {
role: 'help', role: 'help',
label: 'Support',
submenu: [ submenu: [
{ {
label: 'Learn More', label: 'Supernet.org',
click () { require('electron').shell.openExternal('http://electron.atom.io') } click () {
if (process.platform === 'linux') {
require('child_process').exec('xdg-open http://support.supernet.org');
} else {
shell.openExternal('http://support.supernet.org')
}
}
},
{
label: 'Slack',
click () {
if (process.platform === 'linux') {
require('child_process').exec('xdg-open https://sprnt.slack.com/messages/support');
} else {
shell.openExternal('https://sprnt.slack.com/messages/support')
}
}
},
{
label: 'Github',
click () {
if (process.platform === 'linux') {
require('child_process').exec('xdg-open https://github.com/SuperNETorg/iguana/issues');
} else {
shell.openExternal('https://github.com/SuperNETorg/iguana/issues')
}
}
} }
] ]
} }

Loading…
Cancel
Save