Remove old Tampermonkey issue (#656) workaround. #904

This commit is contained in:
ccd0 2016-05-17 03:35:27 -07:00
parent 386ebfbbb7
commit fca71d22d6
2 changed files with 2 additions and 4 deletions

View File

@ -136,8 +136,7 @@ Unread =
icon: Favicon.logo icon: Favicon.logo
notif.onclick = -> notif.onclick = ->
Header.scrollToIfNeeded post.nodes.root, true Header.scrollToIfNeeded post.nodes.root, true
# XXX https://github.com/derjanb/tampermonkey/issues/253 window.focus()
$.global -> window.focus()
notif.onshow = -> notif.onshow = ->
setTimeout -> setTimeout ->
notif.close() notif.close()

View File

@ -209,8 +209,7 @@ QR =
notif = new Notification el.textContent, notif = new Notification el.textContent,
body: el.textContent body: el.textContent
icon: Favicon.logo icon: Favicon.logo
# XXX https://github.com/derjanb/tampermonkey/issues/253 notif.onclick = -> window.focus()
notif.onclick = -> $.global -> window.focus()
if $.engine isnt 'gecko' if $.engine isnt 'gecko'
# Firefox automatically closes notifications # Firefox automatically closes notifications
# so we can't control the onclose properly. # so we can't control the onclose properly.