mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 22:13:47 +08:00
cap nhat auth he thong de nhung voi chebichat
This commit is contained in:
@@ -1458,7 +1458,7 @@ function _Chat() {
|
||||
|
||||
const autoFocus = isIOS() ? false : !isMobileScreen; // wont auto focus on mobile screen
|
||||
|
||||
console.log("tu dong focus:", autoFocus);
|
||||
// console.log("tu dong focus:", autoFocus);
|
||||
|
||||
const showMaxIcon = !isMobileScreen && !clientConfig?.isApp;
|
||||
|
||||
|
||||
29
app/components/storage-initializer.tsx
Normal file
29
app/components/storage-initializer.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
"use client";
|
||||
|
||||
import { useEffect } from "react";
|
||||
|
||||
export default function StorageInitializer() {
|
||||
useEffect(() => {
|
||||
// Initialize storage migration and debugging in development
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
// Import and initialize storage utilities
|
||||
Promise.all([
|
||||
import("../utils/storage-debug"),
|
||||
import("../utils/storage-migration"),
|
||||
])
|
||||
.then(([storageDebug, storageMigration]) => {
|
||||
console.log("🔧 Storage utilities loaded");
|
||||
|
||||
// Run a quick health check
|
||||
if ((window as any).debugStorage?.checkStorageHealth) {
|
||||
(window as any).debugStorage.checkStorageHealth();
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error("Failed to load storage utilities:", error);
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
|
||||
return null; // This component doesn't render anything
|
||||
}
|
||||
Reference in New Issue
Block a user