mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 11:40:13 +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() {
|
async function getChannelCache() {
|
||||||
let cache = await browserType.storage.local.get('cache');
|
let cache = await browserType.storage.local.get('cache');
|
||||||
return cache || { cache: {} };
|
if (cache.cache) return cache;
|
||||||
|
return { cache: {} };
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setChannel(channelHandler, channelId) {
|
async function setChannel(channelHandler, channelId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user