fixing back button (hopefully :p)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user