From 121cc23cdf3a927ea9036b3b89727b51b6d89658 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sat, 30 Jul 2022 23:41:13 +0100 Subject: [PATCH] . --- index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 } }