Feature/#19 notifications tab title #31
|
@ -68,20 +68,9 @@ let __loop = setInterval(() => {
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
||||||
function awaitPathnameChange() {
|
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 => {
|
__afterPathnameChangeScripts.forEach(script => {
|
||||||
if (window.location.pathname.match(script.pattern)) {
|
if (window.location.pathname.match(script.pattern)) {
|
||||||
script.function();
|
script.function();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue