removed unnecessary functionality
This commit is contained in:
parent
c7ac8450b7
commit
ef83390a4d
|
@ -68,20 +68,9 @@ let __loop = setInterval(() => {
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
function awaitPathnameChange() {
|
function awaitPathnameChange() {
|
||||||
let preLoader = document.getElementById('preloader');
|
__afterPathnameChangeScripts.forEach(script => {
|
||||||
|
if (window.location.pathname.match(script.pattern)) {
|
||||||
if (typeof preLoader === 'undefined') {
|
script.function();
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let loop = setInterval(() => {
|
|
||||||
if (preLoader.style.display === "none") {
|
|
||||||
clearInterval(loop);
|
|
||||||
__afterPathnameChangeScripts.forEach(script => {
|
|
||||||
if (window.location.pathname.match(script.pattern)) {
|
|
||||||
script.function();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}, 100);
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue