Node.js based forum software built for the modern web
fix: scroll to post if theme doesn't have top navbar
Barış Soner Uşaklıaad0a618c86f
diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.jsindex 824f55434a..2937470707 100644--- a/public/src/modules/navigator.js+++ b/public/src/modules/navigator.js@@ -559,7 +559,7 @@ define('navigator', ['forum/pagination', 'components', 'hooks', 'alerts'], funct}const postHeight = scrollTo.outerHeight(true);- const navbarHeight = components.get('navbar').outerHeight(true);+ const navbarHeight = components.get('navbar').outerHeight(true) || 0;const topicHeaderHeight = $('.topic-header').outerHeight(true) || 0;const viewportHeight = $(window).height();