mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-15 17:25:26 -04:00
Prewarm email list before first open
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
import spinnerModule from './spinner.js';
|
||||
import sessionModule from './sessions.js';
|
||||
import { initEmailLibrary, openEmailLibrary, closeEmailLibrary, isOpen as isLibOpen } from './emailLibrary.js';
|
||||
import { initEmailLibrary, openEmailLibrary, closeEmailLibrary, isOpen as isLibOpen, prewarmEmailLibrary } from './emailLibrary.js';
|
||||
import * as Modals from './modalManager.js';
|
||||
import { applyEdgeDock } from './modalSnap.js';
|
||||
|
||||
@@ -161,6 +161,7 @@ function _bindEvents() {
|
||||
// Initial unread count check, refresh every 60s
|
||||
_refreshUnreadCount();
|
||||
setInterval(_refreshUnreadCount, 60000);
|
||||
prewarmEmailLibrary({ delay: 3000 });
|
||||
|
||||
// Deep-link: #email=<folder>:<uid> opens the library and expands that card
|
||||
_maybeOpenFromHash();
|
||||
|
||||
Reference in New Issue
Block a user