diff --git a/index.js b/index.js index 8d59f0a..0b1c810 100644 --- a/index.js +++ b/index.js @@ -93,18 +93,13 @@ function PushHistory(url) { var s = true if (window.history) { if (window.history.pushState) { + ReplaceHistory(url) window.history.pushState({ light: !!document.getElementById("so-theme"), order: document.getElementById("so-order").value, sort: document.getElementById("so-sort").value }, "", url); - console.log("PUSH1") - window.history.pushState({ - light: !!document.getElementById("so-theme"), - order: document.getElementById("so-order").value, - sort: document.getElementById("so-sort").value - }, "", url); - console.log("PUSH2") + console.log("PUSH") s = false } }