A free, self-hostable news aggregator…
Reset scroll (#2842)
Alexandre Alapetite8fabed337a6a
diff --git a/p/scripts/main.js b/p/scripts/main.jsindex 6b4b0a6b2..6143692eb 100644--- a/p/scripts/main.js+++ b/p/scripts/main.js@@ -1542,6 +1542,7 @@ function init_normal() {}function init_beforeDOM() {+ document.scrollingElement.scrollTop = 0;if (['normal', 'reader', 'global'].indexOf(context.current_view) >= 0) {init_normal();}