aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-19 09:39:09 +0000
committerMario <mario@mariovavti.com>2019-11-19 09:39:09 +0000
commit21299c6fc147106072aef033e756f08e6fa957c5 (patch)
treeb588323940479b159561c006845dab00f09e7ced /view/js/main.js
parenteec42d3bb320c76318632a2acc7d48892c73abce (diff)
downloadvolse-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.js4
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);