Feature/#19 notifications tab title #31

Merged
kaffem merged 25 commits from feature/#19-notifications-tab-title into develop 2020-10-28 06:46:24 +01:00
Showing only changes of commit 585c1684a2 - Show all commits

View file

@ -20,8 +20,31 @@ export function initCore() {
attributes: true attributes: true
}); });
patchBrowser(); // patchBrowser();
window.addEventListener('locationchange', (event) => handleLocationChanged(event)); // window.addEventListener('locationchange', (event) => handleLocationChanged(event));
runAfterLoad(() => {
let loadingBar = document.getElementById('enable-ani-cm');
let loadingBarObserver = new MutationObserver(mutations => {
mutations.forEach(mutation => {
// enable-ani-cm node changes from display:none to display:block after loading
if (mutation.oldValue.includes('display: none')) {
__afterPathnameChangeScripts.forEach(script => {
if (window.location.pathname.match(script.pattern)) {
script.function();
}
});
}
})
});
loadingBarObserver.observe(loadingBar, {
attributes: true,
attributeOldValue: true,
attributeFilter: ['style'],
});
}, '.*')
helper.onReady(() => awaitPageLoaded()); helper.onReady(() => awaitPageLoaded());
} }