1
0
Fork 0

Update notifications.js

This commit is contained in:
Daniel Supernault 2018-11-13 12:48:20 -07:00
parent 561943994d
commit c692c3022e
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 4 deletions

View File

@ -123,7 +123,7 @@ $(document).ready(function() {
}
pixelfed.n.check = (count) => {
pixelfed.n.sound();
// pixelfed.n.sound();
pixelfed.n.showCount(count);
}
@ -137,8 +137,8 @@ $(document).ready(function() {
ts = now;
}
if(force && count != null || ts > offset) {
pixelfed.n.showCount(count);
if(!force && count != null || ts > offset) {
//pixelfed.n.showCount(count);
ls.set('n.lastCheck', ts);
return;
}
@ -148,7 +148,7 @@ $(document).ready(function() {
let len = res.data.length;
if(len > 0) {
ls.set('n.count', len);
ls.set('n.lastCheck', ts);
ls.set('n.lastCheck', Date.now());
pixelfed.n.check(len);
}
}).catch(err => {