diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index e219c6900..7d305bcab 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5161,7 +5161,7 @@ if (!Header.areNotificationsEnabled) { return; } - notif = new Notice('Quick reply warning', { + notif = new Notification(el.textContent, { body: el.textContent, icon: Favicon.logo }); @@ -8541,7 +8541,7 @@ return; } 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, icon: Favicon.logo }); diff --git a/builds/crx/script.js b/builds/crx/script.js index c0e276695..c14348b83 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5164,7 +5164,7 @@ if (!Header.areNotificationsEnabled) { return; } - notif = new Notice('Quick reply warning', { + notif = new Notification(el.textContent, { body: el.textContent, icon: Favicon.logo }); @@ -8526,7 +8526,7 @@ return; } 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, icon: Favicon.logo }); diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index e6e167d7c..f597614a5 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -100,7 +100,7 @@ Unread = 'Anonymous' else $('.nameBlock', post.nodes.info).textContent.trim() - notif = new Notice "#{name} replied to you", + notif = new Notification "#{name} replied to you", body: post.info.comment icon: Favicon.logo notif.onclick = -> diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index f01d4c20a..cfcacf44c 100755 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -154,7 +154,7 @@ QR = notice = new Notice 'warning', el QR.notifications.push notice return unless Header.areNotificationsEnabled - notif = new Notice 'Quick reply warning', + notif = new Notification el.textContent, body: el.textContent icon: Favicon.logo notif.onclick = -> window.focus()