From f7f8ba936c995805dcc2e028f5780649f0f4f7f3 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sat, 30 Jul 2022 22:43:03 +0100 Subject: [PATCH] . --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index d5f1921..f485fcb 100644 --- a/index.js +++ b/index.js @@ -99,6 +99,7 @@ function PushHistory(url) { sort: document.getElementById("so-sort").value }, "", url); console.log("PUSH") + ReplaceHistory(url) s = false } } @@ -142,9 +143,6 @@ function ToggleTheme() { function SetupJSHPL(){ if (window.history) { if (window.history.pushState && window.history.replaceState) { - if (document.onreadystatechange) { - document.onreadystatechange = cReplaceHistory - } document.addEventListener("DOMContentLoaded", cReplaceHistory) window.addEventListener("load", cReplaceHistory) window.addEventListener("popstate", HandleHistoryPop)