mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-14 21:13:47 +08:00
add close shortkey
This commit is contained in:
@@ -85,7 +85,9 @@ merge(fallbackLang, targetLang);
|
||||
export default fallbackLang as LocaleType;
|
||||
|
||||
function getItem(key: string) {
|
||||
return localStorage.getItem(key);
|
||||
if (typeof window !== "undefined") {
|
||||
return localStorage.getItem(key);
|
||||
}
|
||||
}
|
||||
|
||||
function setItem(key: string, value: string) {
|
||||
|
||||
Reference in New Issue
Block a user