We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe3718d commit 2da11f4Copy full SHA for 2da11f4
1 file changed
chrome/src/inject/inject.js
@@ -37,12 +37,11 @@ function initOnHashChangeAction(domains) {
37
var github_links = reject_unwanted_paths(mail_body.querySelectorAll(selectors))
38
39
// Avoid multple buttons
40
- Array.prototype.forEach.call(document.querySelectorAll('.gitbhub-link'), function (ele) {
+ Array.prototype.forEach.call(document.querySelectorAll('.github-link'), function (ele) {
41
ele.remove()
42
})
43
44
if (github_links.length ) {
45
-
46
var url = github_links[github_links.length-1].href
47
// Go to thread instead of .diff link (pull request notifications)
48
url = url.match(/\.diff/) ? url.slice(0, url.length-5) : url
0 commit comments