Skip to content

Commit

Permalink
fix: if there is no bookmarkThreshold dont init unread indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jan 24, 2024
1 parent cb21f28 commit cf40d68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/src/modules/navigator.js
Expand Up @@ -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');
Expand Down

0 comments on commit cf40d68

Please sign in to comment.