aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/shobon.js6
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) {