This commit is contained in:
parent
37221989f6
commit
a9c8cb7dbd
6
index.js
6
index.js
@ -141,7 +141,11 @@ function ToggleTheme() {
|
|||||||
}
|
}
|
||||||
function SetupJSHPL(){
|
function SetupJSHPL(){
|
||||||
if (window.history) {
|
if (window.history) {
|
||||||
if (window.history.pushState) {
|
if (window.history.pushState && window.history.replaceState) {
|
||||||
|
if (document.onreadystatechange) {
|
||||||
|
document.onreadystatechange = 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