Skip to content

Commit ddbd751

Browse files
committed
Better cleaner
1 parent 086aa92 commit ddbd751

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chrome/src/inject/inject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function initOnHashChangeAction(domains) {
7171
}
7272

7373
// Go to thread instead of diffs or file views
74-
url = url.match(/^(.+\/\d+)/)[1]
74+
if (url.match(/^(.+\/(issue|pull)\/\d+)/)) url = url.match(/^(.+\/(issue|pull)\/\d+)/)[1]
7575
var link = document.createElement('a')
7676
link.href = url
7777
link.className = 'github-link T-I J-J5-Ji lS T-I-ax7 ar7'

0 commit comments

Comments
 (0)