This commit is contained in:
zhu
2026-05-06 10:08:17 +08:00
parent 4c0a1d8151
commit 8b9985873a
10 changed files with 71 additions and 87 deletions

View File

@@ -43,6 +43,9 @@ async function setToken(token: string): Promise<void> {
window.localStorage.setItem(AUTH_TOKEN_KEY, token);
}
/**
* 获取谷歌缓存
*/
function getChromeStorage(): chrome.storage.StorageArea | null {
if (typeof chrome === 'undefined' || !chrome.storage?.local) {
return null;