()
| 57 | } |
| 58 | |
| 59 | export async function getWatchList() { |
| 60 | await defaultsInitialized; |
| 61 | if (!watchListBuffer) { |
| 62 | watchListBuffer = await mvelo.storage.get('mvelo.watchlist') ?? []; |
| 63 | } |
| 64 | return watchListBuffer; |
| 65 | } |
| 66 | |
| 67 | // Firefox-only. Warm path is sync localStorage (microtask-only chain to |
| 68 | // addListener for event-page wakeup). Any cold path reloads — addListener |
no test coverage detected