This commit is contained in:
parent
9ba879666c
commit
6c49ca08bf
3
index.js
3
index.js
@ -99,7 +99,6 @@ function PushHistory(url) {
|
|||||||
sort: document.getElementById("so-sort").value
|
sort: document.getElementById("so-sort").value
|
||||||
}, "", url);
|
}, "", url);
|
||||||
console.log("PUSH")
|
console.log("PUSH")
|
||||||
ReplaceHistory(url)
|
|
||||||
s = false
|
s = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -143,7 +142,7 @@ function ToggleTheme() {
|
|||||||
function SetupJSHPL(){
|
function SetupJSHPL(){
|
||||||
if (window.history) {
|
if (window.history) {
|
||||||
if (window.history.pushState && window.history.replaceState) {
|
if (window.history.pushState && window.history.replaceState) {
|
||||||
window.addEventListener("load", cReplaceHistory)
|
document.addEventListener("DOMContentLoaded", cReplaceHistory)
|
||||||
window.addEventListener("popstate", HandleHistoryPop)
|
window.addEventListener("popstate", HandleHistoryPop)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user