This commit is contained in:
@@ -349,6 +349,7 @@
|
||||
}
|
||||
|
||||
function startDashboardPoll() {
|
||||
if (window.AuthApp && !window.AuthApp.isReady()) return;
|
||||
stopDashboardPoll();
|
||||
missions()?.refreshQueue?.();
|
||||
store.queueUnsub = missions()?.onQueueUpdate?.(() => refreshDynamicWidgets());
|
||||
@@ -386,5 +387,10 @@
|
||||
},
|
||||
};
|
||||
|
||||
init();
|
||||
function boot() {
|
||||
init();
|
||||
}
|
||||
if (window.AuthApp?.isReady()) boot();
|
||||
else window.addEventListener("lm:auth-ready", boot, { once: true });
|
||||
window.addEventListener("lm:auth-logout", stopDashboardPoll);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user