mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-14 12:48:03 +00:00
Lazy load startup task and email work
This commit is contained in:
+1
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user