mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-07 10:36:38 +08:00
fix bug
This commit is contained in:
parent
ca2eeb8370
commit
45d2ccc119
@ -59,8 +59,9 @@ export const useSyncStore = createPersistStore(
|
||||
|
||||
const jsonString = JSON.stringify(exportData);
|
||||
const compressed = pako.deflate(jsonString);
|
||||
const encoded = btoa(String.fromCharCode.apply(null, compressed));
|
||||
|
||||
const encoded = btoa(
|
||||
String.fromCharCode.apply(null, Array.from(compressed)),
|
||||
);
|
||||
try {
|
||||
await navigator.clipboard.writeText(encoded);
|
||||
showToast(Locale.Settings.Sync.ExportSuccess);
|
||||
|
Loading…
Reference in New Issue
Block a user