Remove 'low on cached captchas' notifications.
This commit is contained in:
parent
77074a9f48
commit
ddcc8b7c10
@ -724,18 +724,6 @@ QR =
|
|||||||
# Enable auto-posting if we have stuff left to post, disable it otherwise.
|
# Enable auto-posting if we have stuff left to post, disable it otherwise.
|
||||||
postsCount = QR.posts.length - 1
|
postsCount = QR.posts.length - 1
|
||||||
QR.cooldown.auto = postsCount and isReply
|
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
|
unless Conf['Persistent QR'] or postsCount
|
||||||
QR.close()
|
QR.close()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user