hgfhhdf
This commit is contained in:
@@ -2272,9 +2272,14 @@ window.cancelAnimFrame = (function () {
|
|||||||
// Restore Scroll Position
|
// Restore Scroll Position
|
||||||
requestAnimationFrame(() => window.scrollTo(0, cache.scroll));
|
requestAnimationFrame(() => window.scrollTo(0, cache.scroll));
|
||||||
|
|
||||||
|
// Update URL bar — push to history so the address shows / not /453
|
||||||
|
if (!options.skipPush) {
|
||||||
|
history.pushState({}, '', url);
|
||||||
|
}
|
||||||
|
|
||||||
// Update Document Title
|
// Update Document Title
|
||||||
let titleSuffix = '';
|
let titleSuffix = '';
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(urlObj.search);
|
||||||
const page = urlParams.get('p') || urlParams.get('page');
|
const page = urlParams.get('p') || urlParams.get('page');
|
||||||
if (page) titleSuffix = ` - page ${page}`;
|
if (page) titleSuffix = ` - page ${page}`;
|
||||||
document.title = `${window.f0ckDomain}${titleSuffix}`;
|
document.title = `${window.f0ckDomain}${titleSuffix}`;
|
||||||
@@ -2287,6 +2292,8 @@ window.cancelAnimFrame = (function () {
|
|||||||
if (window.initSidebarRightToggle) window.initSidebarRightToggle();
|
if (window.initSidebarRightToggle) window.initSidebarRightToggle();
|
||||||
if (window.syncNavbarHeight) window.syncNavbarHeight();
|
if (window.syncNavbarHeight) window.syncNavbarHeight();
|
||||||
// Sync has-notif highlights — on PWA there's no visibilitychange, so poll here
|
// Sync has-notif highlights — on PWA there's no visibilitychange, so poll here
|
||||||
|
// Also prepend any new items posted since the grid was cached — no full reload needed
|
||||||
|
window.NotificationSystemInstance?.checkForNewItems?.();
|
||||||
window.NotificationSystemInstance?.pollDebounced?.();
|
window.NotificationSystemInstance?.pollDebounced?.();
|
||||||
isNavigating = false;
|
isNavigating = false;
|
||||||
return; // SKIP FETCH
|
return; // SKIP FETCH
|
||||||
|
|||||||
Reference in New Issue
Block a user