diff --git a/app/store/sync.ts b/app/store/sync.ts index 297997d48..3953c140d 100644 --- a/app/store/sync.ts +++ b/app/store/sync.ts @@ -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);