This commit is contained in:
seaweedchan 2013-08-18 06:00:23 -07:00
commit 60ad20f6a5
4 changed files with 6 additions and 6 deletions

View File

@ -4979,7 +4979,7 @@
if (!Header.areNotificationsEnabled) { if (!Header.areNotificationsEnabled) {
return; return;
} }
notif = new Notice('Quick reply warning', { notif = new Notification(el.textContent, {
body: el.textContent, body: el.textContent,
icon: Favicon.logo icon: Favicon.logo
}); });
@ -8231,7 +8231,7 @@
return; return;
} }
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim(); name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim();
notif = new Notice("" + name + " replied to you", { notif = new Notification("" + name + " replied to you", {
body: post.info.comment, body: post.info.comment,
icon: Favicon.logo icon: Favicon.logo
}); });

View File

@ -4982,7 +4982,7 @@
if (!Header.areNotificationsEnabled) { if (!Header.areNotificationsEnabled) {
return; return;
} }
notif = new Notice('Quick reply warning', { notif = new Notification(el.textContent, {
body: el.textContent, body: el.textContent,
icon: Favicon.logo icon: Favicon.logo
}); });
@ -8216,7 +8216,7 @@
return; return;
} }
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim(); name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim();
notif = new Notice("" + name + " replied to you", { notif = new Notification("" + name + " replied to you", {
body: post.info.comment, body: post.info.comment,
icon: Favicon.logo icon: Favicon.logo
}); });

View File

@ -100,7 +100,7 @@ Unread =
'Anonymous' 'Anonymous'
else else
$('.nameBlock', post.nodes.info).textContent.trim() $('.nameBlock', post.nodes.info).textContent.trim()
notif = new Notice "#{name} replied to you", notif = new Notification "#{name} replied to you",
body: post.info.comment body: post.info.comment
icon: Favicon.logo icon: Favicon.logo
notif.onclick = -> notif.onclick = ->

View File

@ -154,7 +154,7 @@ QR =
notice = new Notice 'warning', el notice = new Notice 'warning', el
QR.notifications.push notice QR.notifications.push notice
return unless Header.areNotificationsEnabled return unless Header.areNotificationsEnabled
notif = new Notice 'Quick reply warning', notif = new Notification el.textContent,
body: el.textContent body: el.textContent
icon: Favicon.logo icon: Favicon.logo
notif.onclick = -> window.focus() notif.onclick = -> window.focus()