cap nhat giao dien

This commit is contained in:
quangdn-ght
2025-06-25 18:12:09 +07:00
parent cdeb27891b
commit b07760fbc9
28 changed files with 526 additions and 307 deletions

View File

@@ -42,8 +42,8 @@ export const DEFAULT_CONFIG = {
lastUpdate: Date.now(), // timestamp, to merge state
submitKey: SubmitKey.Enter,
avatar: "1f603",
fontSize: 14,
avatar: "chebi-user",
fontSize: 16,
fontFamily: "",
theme: Theme.Auto as Theme,
tightBorder: !!config?.isApp,

View File

@@ -131,6 +131,9 @@ export const useSyncStore = createPersistStore(
) as AppState;
mergeAppState(localState, parsedRemoteState);
setLocalAppState(localState);
console.log("[Sync] Merged remote state with local state");
console.log("Dong bo thanh cong", provider, config.username);
}
} catch (e) {
console.log("[Sync] failed to get remote state", e);