Skip to content

Commit

Permalink
chore: update homepage and bug report URLs (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
Falci authored Apr 20, 2022
1 parent 801dd5b commit d9f3d0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/components/Notification/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export default class Notification extends Component {
<div
className="notification__issue-wrapper__action"
onClick={() => {
require("electron").shell.openExternal("https://forum.kyokan.io/c/bob/support/5");
const pkg = require('../../../package.json');
require("electron").shell.openExternal(pkg.bugs.url);
}}
>
Create Bug Report
Expand Down
6 changes: 3 additions & 3 deletions app/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default class MenuBuilder {
{
label: 'Report an Issue',
click() {
shell.openExternal('https://forum.kyokan.io/c/bob/support/5');
shell.openExternal(pkg.bugs.url);
}
}
]
Expand Down Expand Up @@ -240,13 +240,13 @@ export default class MenuBuilder {
{
label: "About Bob",
click: () => {
shell.openExternal("https://github.com/kyokan/bob-electron")
shell.openExternal(pkg.homepage)
}
},
{
label: 'Report an Issue',
click() {
shell.openExternal('https://forum.kyokan.io/c/bob/support/5');
shell.openExternal(pkg.bugs.url);
}
}
]
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,12 @@
"type": "git",
"url": "git+https://github.com/kyokan/bob-electron.git"
},
"bugs": {
"url": "https://github.com/kyokan/bob-wallet/issues/new?template=bug_report.md"
},
"license": "MIT",
"keywords": [],
"homepage": "https://github.com/kyokan/bob-electron#readme",
"homepage": "https://bobwallet.io/",
"devDependencies": {
"@babel/cli": "^7.16.8",
"@babel/core": "^7.16.7",
Expand Down

0 comments on commit d9f3d0c

Please sign in to comment.