mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-12-25 03:10:12 +00:00
fix empty cache at first start
This commit is contained in:
parent
ef89daf1a1
commit
87ef597116
@ -143,7 +143,8 @@ async function videoExists(id) {
|
||||
|
||||
async function getChannelCache() {
|
||||
let cache = await browserType.storage.local.get('cache');
|
||||
return cache || { cache: {} };
|
||||
if (cache.cache) return cache;
|
||||
return { cache: {} };
|
||||
}
|
||||
|
||||
async function setChannel(channelHandler, channelId) {
|
||||
|
Loading…
Reference in New Issue
Block a user