Node.js based forum software built for the modern web
fix: if there is no bookmarkThreshold dont init unread indicator
Barış Soner Uşaklıcf40d68176ba
diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.jsindex 515b4947e0..3cf81cbe9c 100644--- a/public/src/modules/navigator.js+++ b/public/src/modules/navigator.js@@ -353,7 +353,8 @@ define('navigator', [}async function updateUnreadIndicator(index) {- if (!paginationBlockUnreadEl.length || ajaxify.data.postcount <= ajaxify.data.bookmarkThreshold) {+ const { bookmarkThreshold } = ajaxify.data;+ if (!paginationBlockUnreadEl.length || ajaxify.data.postcount <= bookmarkThreshold || !bookmarkThreshold) {return;}const currentBookmark = ajaxify.data.bookmark || storage.getItem('topic:' + ajaxify.data.tid + ':bookmark');