From fca71d22d626ee75202648b2924c0586b82f9e83 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 17 May 2016 03:35:27 -0700 Subject: [PATCH] Remove old Tampermonkey issue (#656) workaround. #904 --- src/Monitoring/Unread.coffee | 3 +-- src/Posting/QR.coffee | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index f9232c8a6..f2f3f9c57 100644 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -136,8 +136,7 @@ Unread = icon: Favicon.logo notif.onclick = -> Header.scrollToIfNeeded post.nodes.root, true - # XXX https://github.com/derjanb/tampermonkey/issues/253 - $.global -> window.focus() + window.focus() notif.onshow = -> setTimeout -> notif.close() diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index f52f78877..56058d634 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -209,8 +209,7 @@ QR = notif = new Notification el.textContent, body: el.textContent icon: Favicon.logo - # XXX https://github.com/derjanb/tampermonkey/issues/253 - notif.onclick = -> $.global -> window.focus() + notif.onclick = -> window.focus() if $.engine isnt 'gecko' # Firefox automatically closes notifications # so we can't control the onclose properly.