From 122faaae85845acc204f2cae06a1f90ef71d4642 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Sat, 30 Jul 2022 23:51:30 +0100 Subject: [PATCH] . --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c92e679..0f58d24 100644 --- a/index.js +++ b/index.js @@ -93,7 +93,6 @@ 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, @@ -111,6 +110,7 @@ function CToggleTheme() { ToggleTheme(true) } function ToggleTheme(p) { + if (p) {cReplaceHistory();} var th = document.getElementById("theme") var thimg = document.getElementById("theme-img") var thsty = document.getElementById("style-theme")