Work around SeaMonkey desktop notifications bug. #383
This commit is contained in:
parent
456123fa70
commit
7edf0eda95
@ -127,6 +127,8 @@ Unread =
|
|||||||
|
|
||||||
openNotification: (post) ->
|
openNotification: (post) ->
|
||||||
return unless Header.areNotificationsEnabled
|
return unless Header.areNotificationsEnabled
|
||||||
|
# XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1130502 (SeaMonkey)
|
||||||
|
try
|
||||||
notif = new Notification "#{post.info.nameBlock} replied to you",
|
notif = new Notification "#{post.info.nameBlock} replied to you",
|
||||||
body: post.info.commentDisplay
|
body: post.info.commentDisplay
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
|
|||||||
@ -196,6 +196,8 @@ QR =
|
|||||||
unless Header.areNotificationsEnabled
|
unless Header.areNotificationsEnabled
|
||||||
alert el.textContent if d.hidden and not QR.cooldown.auto
|
alert el.textContent if d.hidden and not QR.cooldown.auto
|
||||||
else if d.hidden or not (focusOverride or d.hasFocus())
|
else if d.hidden or not (focusOverride or d.hasFocus())
|
||||||
|
# XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1130502 (SeaMonkey)
|
||||||
|
try
|
||||||
notif = new Notification el.textContent,
|
notif = new Notification el.textContent,
|
||||||
body: el.textContent
|
body: el.textContent
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user