Skip to content

Commit 8248646

Browse files
Merge pull request #22 from richrace/fix-pull-url
Correct URL for Pull Requests
2 parents 9826192 + b60ae62 commit 8248646

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js/components/notification.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ var Notification = React.createClass({
1717

1818
openBrowser: function () {
1919
var url = this.props.notification.subject.url.replace('api.github.com/repos', 'www.github.com');
20+
if (url.indexOf("/pulls/") != -1) {
21+
url = url.replace("/pulls/", "/pull/");
22+
}
2023
shell.openExternal(url);
2124
},
2225

0 commit comments

Comments
 (0)