Skip to content

Commit 2da11f4

Browse files
committed
Typo
1 parent fe3718d commit 2da11f4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

chrome/src/inject/inject.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ function initOnHashChangeAction(domains) {
3737
var github_links = reject_unwanted_paths(mail_body.querySelectorAll(selectors))
3838

3939
// Avoid multple buttons
40-
Array.prototype.forEach.call(document.querySelectorAll('.gitbhub-link'), function (ele) {
40+
Array.prototype.forEach.call(document.querySelectorAll('.github-link'), function (ele) {
4141
ele.remove()
4242
})
4343

4444
if (github_links.length ) {
45-
4645
var url = github_links[github_links.length-1].href
4746
// Go to thread instead of .diff link (pull request notifications)
4847
url = url.match(/\.diff/) ? url.slice(0, url.length-5) : url

0 commit comments

Comments
 (0)