diff options
author | Mario <mario@mariovavti.com> | 2019-11-19 09:39:09 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-19 09:39:09 +0000 |
commit | 21299c6fc147106072aef033e756f08e6fa957c5 (patch) | |
tree | b588323940479b159561c006845dab00f09e7ced /view/js/main.js | |
parent | eec42d3bb320c76318632a2acc7d48892c73abce (diff) | |
download | volse-hubzilla-21299c6fc147106072aef033e756f08e6fa957c5.tar.gz volse-hubzilla-21299c6fc147106072aef033e756f08e6fa957c5.tar.bz2 volse-hubzilla-21299c6fc147106072aef033e756f08e6fa957c5.zip |
sse: defins sse_mids as array and comment out logging of dismissed notifications
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js index fec86f4ba..1fbd57b2a 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -30,7 +30,7 @@ var sse_bs_active = false; var sse_offset = 0; var sse_type; var sse_partial_result = false; -var sse_mids; +var sse_mids = []; // take care of tab/window reloads on channel change if(localStorage.getItem('uid') !== localUser.toString()) { @@ -2078,7 +2078,7 @@ function sse_handleNotificationsItems(notifyType, data, replace, followup) { $(data).each(function() { if(sse_mids.indexOf(this.b64mid) >= 0) { - console.log('dismiss: ' + this.b64mid); + //console.log('dismiss: ' + this.b64mid); return true; } html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.addr,this.message,this.when,this.hclass,this.b64mid,this.notify_id,this.thread_top,this.unseen,this.private_forum); |