This commit is contained in:
parent
0263964326
commit
122faaae85
2
index.js
2
index.js
@ -93,7 +93,6 @@ function PushHistory(url) {
|
|||||||
var s = true
|
var s = true
|
||||||
if (window.history) {
|
if (window.history) {
|
||||||
if (window.history.pushState) {
|
if (window.history.pushState) {
|
||||||
ReplaceHistory(url)
|
|
||||||
window.history.pushState({
|
window.history.pushState({
|
||||||
light: !!document.getElementById("so-theme"),
|
light: !!document.getElementById("so-theme"),
|
||||||
order: document.getElementById("so-order").value,
|
order: document.getElementById("so-order").value,
|
||||||
@ -111,6 +110,7 @@ function CToggleTheme() {
|
|||||||
ToggleTheme(true)
|
ToggleTheme(true)
|
||||||
}
|
}
|
||||||
function ToggleTheme(p) {
|
function ToggleTheme(p) {
|
||||||
|
if (p) {cReplaceHistory();}
|
||||||
var th = document.getElementById("theme")
|
var th = document.getElementById("theme")
|
||||||
var thimg = document.getElementById("theme-img")
|
var thimg = document.getElementById("theme-img")
|
||||||
var thsty = document.getElementById("style-theme")
|
var thsty = document.getElementById("style-theme")
|
||||||
|
Loading…
Reference in New Issue
Block a user