This commit is contained in:
parent
a9c8cb7dbd
commit
f7f8ba936c
4
index.js
4
index.js
@ -99,6 +99,7 @@ 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -142,9 +143,6 @@ 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) {
|
||||||
if (document.onreadystatechange) {
|
|
||||||
document.onreadystatechange = cReplaceHistory
|
|
||||||
}
|
|
||||||
document.addEventListener("DOMContentLoaded", cReplaceHistory)
|
document.addEventListener("DOMContentLoaded", cReplaceHistory)
|
||||||
window.addEventListener("load", cReplaceHistory)
|
window.addEventListener("load", cReplaceHistory)
|
||||||
window.addEventListener("popstate", HandleHistoryPop)
|
window.addEventListener("popstate", HandleHistoryPop)
|
||||||
|
Loading…
Reference in New Issue
Block a user