Show a desktop notification even if the tab is visible.

This commit is contained in:
Mayhem 2013-08-18 00:20:07 +02:00
parent dd8748fbfb
commit 346010e188
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ Unread =
Unread.openNotification post
return
openNotification: (post) ->
return unless d.hidden and Header.areNotificationsEnabled
return unless Header.areNotificationsEnabled
name = if Conf['Anonymize']
'Anonymous'
else

View File

@ -113,7 +113,7 @@ QR =
QR.captcha.nodes.input.focus()
notice = new Notice 'warning', el
QR.notifications.push notice
return unless d.hidden and Header.areNotificationsEnabled
return unless Header.areNotificationsEnabled
notif = new Notification 'Quick reply warning',
body: el.textContent
icon: Favicon.logo