From dac21cf807019825b9fa4fdc161e85ab83b4daaf Mon Sep 17 00:00:00 2001 From: or-else Date: Sat, 3 Mar 2018 18:59:28 -0800 Subject: [PATCH] fix favicon display --- index.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/index.html b/index.html index 144c26cc..e8153e9b 100644 --- a/index.html +++ b/index.html @@ -1406,19 +1406,16 @@ this.handleAddTag(text.substr(0, text.length-1)); } } - console.log(text); }, handleAddTag: function(tag) { var tags = this.state.tags.slice(0); tags.push(tag); this.setState({tags: tags}); - console.log("add tag", tag, tags); }, handleRemoveTag: function(tag, index) { var tags = this.state.tags.slice(0); tags.splice(index, 1); this.setState({tags: tags}); - console.log("tag removed", tag, index, tags); }, render: function() { @@ -1646,11 +1643,10 @@ var contacts = []; var totalUnread = 0; Tinode.getMeTopic().contacts(function(c) { - c.unread = c.seq - (c.read > 0 ? c.read : 0); + c.unread = (c.seq - c.read) || 0; totalUnread += c.unread; contacts.push(c); }, this); - updateFavicon(totalUnread > 0); return contacts;