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)