Remove 'low on cached captchas' notifications.

This commit is contained in:
ccd0 2015-02-28 20:51:17 -08:00
parent 77074a9f48
commit ddcc8b7c10

View File

@ -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()