From 2e7595d63939114e7b294ad395584c4c9c8dfe0f Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sat, 30 Jul 2022 22:22:40 +0100 Subject: [PATCH] . --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 03e3012..5c9cf0c 100644 --- a/index.js +++ b/index.js @@ -88,7 +88,9 @@ function PushHistory(url) { window.history.replaceState(objectData, "", url); ReplaceNeeded = false } - window.history.pushState( objectData, "", url); + window.history.pushState(objectData, "", url); + console.log("PUSH") + console.log(objectData) s = false } } @@ -137,6 +139,8 @@ function SetupJSHPL(){ } } function HandleHistoryPop(event) { + console.log("POP") + console.log(event.state) if (event.state) { SortOrderEnabled = false var isnl = !document.getElementById("so-theme")