We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acefd43 commit f64ff13Copy full SHA for f64ff13
src/sync-manager.ts
@@ -1,4 +1,4 @@
1
-import { Vault, normalizePath } from "obsidian";
+import { Vault, normalizePath, base64ToArrayBuffer } from "obsidian";
2
import GithubClient, {
3
GetTreeResponseItem,
4
NewTreeRequestItem,
@@ -619,7 +619,7 @@ export default class SyncManager {
619
}
620
this.vault.adapter.writeBinary(
621
normalizedPath,
622
- Buffer.from(blob.content, "base64"),
+ base64ToArrayBuffer(blob.content),
623
);
624
this.metadataStore.data.files[file.path] = {
625
path: file.path,
0 commit comments