Node.js based forum software built for the modern web
don't crash if anchorEl doesn't exist
barisusakli9dd8572b98db
diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.jsindex 0fb1a7f368..93dc81ff06 100644--- a/public/src/modules/navigator.js+++ b/public/src/modules/navigator.js@@ -143,8 +143,10 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, comthreshold = 0;} else {var anchorEl = components.get('post/anchor', index - 1);- var anchorRect = anchorEl.get(0).getBoundingClientRect();- threshold = anchorRect.top;+ if (anchorEl.length) {+ var anchorRect = anchorEl.get(0).getBoundingClientRect();+ threshold = anchorRect.top;+ }}}