diff options
author | TOW | 2019-04-01 20:08:43 -0300 |
---|---|---|
committer | TOW | 2019-04-01 20:10:04 -0300 |
commit | 49c8f7f85352b6af92ab48dd3741baea7f9ec16f (patch) | |
tree | 202bd128513653e09bff498b44f30c70de60ccff | |
parent | 209168adab63a3cf2d879b92d198a5d3485bfb97 (diff) | |
download | weabot-49c8f7f85352b6af92ab48dd3741baea7f9ec16f.tar.gz weabot-49c8f7f85352b6af92ab48dd3741baea7f9ec16f.tar.xz weabot-49c8f7f85352b6af92ab48dd3741baea7f9ec16f.zip |
Shobon: Fix localstorage
Shobon estaba escribiendo un montón de info en el localStorage
aunque la funcionalidad de Destacar mensajes estuviera apagada.
-rw-r--r-- | static/js/shobon.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/static/js/shobon.js b/static/js/shobon.js index 69b789a..31fab9a 100644 --- a/static/js/shobon.js +++ b/static/js/shobon.js @@ -43,8 +43,7 @@ function shobon() { } var lastReplyN = replyList[replyList.length - 1].attributes["data-n"].value; - - if (localStorage.getItem(boardName + "_" + threadId) == null) { + if(localStorage.getItem("shobon_newposts") == "true" && localStorage.getItem(boardName + "_" + threadId) == null) { localStorage.setItem(boardName + "_" + threadId, lastReplyN); } var lastSeen = localStorage.getItem(boardName + "_" + threadId); @@ -101,10 +100,9 @@ function shobon() { document.body.appendChild(banner); } - if (inThread) { + if(localStorage.getItem("shobon_newposts") == "true" && inThread) { localStorage.setItem(boardName + "_" + threadId, lastReplyN); } - } function on_checked(e) { |