Skip to content

Commit f64ff13

Browse files
committed
Use mobile compatible util function to convert from base64 string
1 parent acefd43 commit f64ff13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sync-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Vault, normalizePath } from "obsidian";
1+
import { Vault, normalizePath, base64ToArrayBuffer } from "obsidian";
22
import GithubClient, {
33
GetTreeResponseItem,
44
NewTreeRequestItem,
@@ -619,7 +619,7 @@ export default class SyncManager {
619619
}
620620
this.vault.adapter.writeBinary(
621621
normalizedPath,
622-
Buffer.from(blob.content, "base64"),
622+
base64ToArrayBuffer(blob.content),
623623
);
624624
this.metadataStore.data.files[file.path] = {
625625
path: file.path,

0 commit comments

Comments
 (0)