Browse Source

Merge pull request #3312 from rabuzarus/20170409_-_fix_desktop_notifs

Bugfix: Desktop-notifs - show notifs which have seen = false or seen = 0
tags/3.5.2
Hypolite Petovan 3 years ago
committed by GitHub
parent
commit
b9c0c114fb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      js/main.js

+ 1
- 1
js/main.js View File

@@ -249,7 +249,7 @@
// Desktop Notifications
$(data.notifications.reverse()).each(function(key, e){
notification_id = parseInt(e.timestamp);
if (notification_lastitem !== null && notification_id > notification_lastitem && !e.seen) {
if (notification_lastitem !== null && notification_id > notification_lastitem && Number(e.seen) === 0) {
if (getNotificationPermission() === "granted") {
var notification = new Notification(document.title, {
body: decodeHtml(e.message.replace('→ ', '').format(e.name)),


Loading…
Cancel
Save