fixing back button (hopefully :p)
This commit is contained in:
@@ -262,6 +262,13 @@ window.requestAnimFrame = (function () {
|
|||||||
window.initBackground();
|
window.initBackground();
|
||||||
|
|
||||||
const loadPageAjax = async (url) => {
|
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
|
// Show loading indicator
|
||||||
const navbar = document.querySelector("nav.navbar");
|
const navbar = document.querySelector("nav.navbar");
|
||||||
if (navbar) navbar.classList.add("pbwork");
|
if (navbar) navbar.classList.add("pbwork");
|
||||||
|
|||||||
Reference in New Issue
Block a user