removed unnecessary functionality

This commit is contained in:
kaffem 2020-08-20 16:15:35 +02:00
parent c7ac8450b7
commit ef83390a4d

View file

@ -68,20 +68,9 @@ let __loop = setInterval(() => {
}, 100);
function awaitPathnameChange() {
let preLoader = document.getElementById('preloader');
if (typeof preLoader === 'undefined') {
return;
}
let loop = setInterval(() => {
if (preLoader.style.display === "none") {
clearInterval(loop);
__afterPathnameChangeScripts.forEach(script => {
if (window.location.pathname.match(script.pattern)) {
script.function();
}
})
__afterPathnameChangeScripts.forEach(script => {
if (window.location.pathname.match(script.pattern)) {
script.function();
}
}, 100);
})
}