1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user