mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 05:41:36 +00:00
Use mobile compatible util function to convert from base64 string
This commit is contained in:
parent
acefd43f60
commit
f64ff13b88
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Vault, normalizePath } from "obsidian";
|
||||
import { Vault, normalizePath, base64ToArrayBuffer } from "obsidian";
|
||||
import GithubClient, {
|
||||
GetTreeResponseItem,
|
||||
NewTreeRequestItem,
|
||||
|
|
@ -619,7 +619,7 @@ export default class SyncManager {
|
|||
}
|
||||
this.vault.adapter.writeBinary(
|
||||
normalizedPath,
|
||||
Buffer.from(blob.content, "base64"),
|
||||
base64ToArrayBuffer(blob.content),
|
||||
);
|
||||
this.metadataStore.data.files[file.path] = {
|
||||
path: file.path,
|
||||
|
|
|
|||
Loading…
Reference in a new issue