Lazy load startup task and email work

This commit is contained in:
pewdiepie-archdaemon
2026-06-30 01:28:08 +00:00
parent 24c2c43770
commit a51f65e9ba
2 changed files with 6 additions and 7 deletions
+1 -3
View File
@@ -2706,6 +2706,7 @@ function _renderMainView() {
// ---- Modal ----
export function openTasks(focusId, opts) {
startNotificationPolling();
const o = opts || {};
const openActivityForFailure = _taskFailurePending && !focusId && o.filter === undefined;
_setTaskFailurePending(false);
@@ -2937,9 +2938,6 @@ function stopNotificationPolling() {
}
}
// Start polling on module load
startNotificationPolling();
const tasksModule = { openTasks, closeTasks, isTasksOpen, startNotificationPolling, stopNotificationPolling };
export default tasksModule;
window.tasksModule = tasksModule;