mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: if there is no bookmarkThreshold dont init unread indicator
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user