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