mirror of
https://github.com/skidoodle/hostinfo
synced 2026-04-28 09:37:37 +02:00
fix cache
This commit is contained in:
@@ -7,6 +7,7 @@ export const StorageService = {
|
|||||||
try {
|
try {
|
||||||
const res = await browser.storage.session.get(key);
|
const res = await browser.storage.session.get(key);
|
||||||
if (res[key]) return res[key] as TabState;
|
if (res[key]) return res[key] as TabState;
|
||||||
|
return null;
|
||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
const res = await browser.storage.local.get(`session_${key}`);
|
const res = await browser.storage.local.get(`session_${key}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user