From ddcc8b7c107748c1b2299638ad198f08ab78999b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 28 Feb 2015 20:51:17 -0800 Subject: [PATCH] Remove 'low on cached captchas' notifications. --- src/Posting/QR.coffee | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index e66b5d594..e58535874 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -724,18 +724,6 @@ QR = # Enable auto-posting if we have stuff left to post, disable it otherwise. postsCount = QR.posts.length - 1 QR.cooldown.auto = postsCount and isReply - if QR.cooldown.auto and QR.captcha.isEnabled and (captchasCount = QR.captcha.captchas.length) < 3 and captchasCount < postsCount - notif = new Notification 'Quick reply warning', - body: "You are running low on cached captchas. Cache count: #{captchasCount}." - icon: Favicon.logo - notif.onclick = -> - QR.open() - window.focus() - QR.captcha.setup true - notif.onshow = -> - setTimeout -> - notif.close() - , 7 * $.SECOND unless Conf['Persistent QR'] or postsCount QR.close()