Test JS
This commit is contained in:
parent
4bd066e755
commit
612baabb63
@ -156,8 +156,6 @@ async function initAjax() {
|
||||
await onPageLoad();
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initAjax);
|
||||
|
||||
async function onPageLoad(){
|
||||
await restoreUserInfo();
|
||||
let currentSite = localStorage.getItem("currentSite");
|
||||
@ -412,3 +410,9 @@ async function deleteActivationCode(activationCode) {
|
||||
umami.track("deleteActivationCode");
|
||||
}
|
||||
//Admin settings end
|
||||
|
||||
if (document.readyState !== "loading") {
|
||||
setTimeout(initAjax, 0);
|
||||
} else {
|
||||
document.addEventListener("DOMContentLoaded", initAjax);
|
||||
}
|
Loading…
Reference in New Issue
Block a user