fixing back button (hopefully :p)

This commit is contained in:
2026-01-27 11:21:58 +01:00
parent c630143202
commit d23cc055ab

View File

@@ -262,6 +262,13 @@ window.requestAnimFrame = (function () {
window.initBackground();
const loadPageAjax = async (url) => {
// If we don't have a posts container (e.g. we are coming from an item view),
// we must reload to restore the full list view structure.
if (!document.querySelector('.posts')) {
window.location.href = url;
return;
}
// Show loading indicator
const navbar = document.querySelector("nav.navbar");
if (navbar) navbar.classList.add("pbwork");