mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
fix build error
This commit is contained in:
parent
3fd1035bfa
commit
0c2d4ab056
@ -7,7 +7,7 @@ const localStorage = safeLocalStorage();
|
|||||||
class IndexedDBStorage implements StateStorage {
|
class IndexedDBStorage implements StateStorage {
|
||||||
public async getItem(name: string): Promise<string | null> {
|
public async getItem(name: string): Promise<string | null> {
|
||||||
if (typeof window === "undefined") {
|
if (typeof window === "undefined") {
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const value = (await get(name)) || localStorage.getItem(name);
|
const value = (await get(name)) || localStorage.getItem(name);
|
||||||
|
Loading…
Reference in New Issue
Block a user