Add the 4chan X logo to desktop notifications.

This commit is contained in:
Mayhem 2013-08-17 19:02:04 +02:00
parent e539c35a53
commit 43fbf62da0
3 changed files with 4 additions and 1 deletions

View File

@ -47,3 +47,4 @@ Favicon =
empty: 'data:image/gif;base64,<%= grunt.file.read("img/favicons/empty.gif", {encoding: "base64"}) %>'
dead: 'data:image/gif;base64,<%= grunt.file.read("img/favicons/dead.gif", {encoding: "base64"}) %>'
logo: 'data:image/png;base64,<%= grunt.file.read("img/icon128.png", {encoding: "base64"}) %>'

View File

@ -103,6 +103,7 @@ Unread =
$('.nameBlock', post.nodes.info).textContent.trim()
notif = new Notification "#{name} replied to you.",
body: post.info.comment
icon: Favicon.logo
notif.onclick = ->
Header.scrollToPost post.nodes.root
window.focus()

View File

@ -114,8 +114,9 @@ QR =
notice = new Notice 'warning', el
QR.notifications.push notice
return unless d.hidden
notif = new Notification '<%= meta.name %> QR warning',
notif = new Notification 'Quick reply warning',
body: el.textContent
icon: Favicon.logo
notif.onclick = -> window.focus()
notif.onclose = -> notice.close()
setTimeout ->