Skip to content

Commit

Permalink
add about page
Browse files Browse the repository at this point in the history
  • Loading branch information
trazyn committed Sep 2, 2017
1 parent c0a3ce6 commit 146e1d8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ let mainMenu = [
submenu: [
{
label: `About ${pkg.name}`,
click() {
shell.openExternal('https://github.com/trazyn/weweChat');
}
selector: 'orderFrontStandardAboutPanel:',
},
{
label: 'Preferences...',
Expand Down Expand Up @@ -556,6 +554,14 @@ const createMainWindow = () => {

if (isOsx) {
createMenu();

app.setAboutPanelOptions({
applicationName: pkg.name,
applicationVersion: pkg.version,
copyright: 'Made with 💖 by trazyn. \n https://github.com/trazyn/weweChat',
credits: `With the invaluable help of: \n web.wechat.com`,
version: pkg.version
});
}

session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => {
Expand Down

0 comments on commit 146e1d8

Please sign in to comment.