mirror of
https://github.com/zigholding/obsidian-notesync-plugin.git
synced 2026-07-22 12:20:23 +00:00
wxmp
This commit is contained in:
parent
d1de7bea54
commit
36cc29a2dc
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ export class Wxmp {
|
|||
if (!tfile) { return }
|
||||
let ext = tfile.extension.toLowerCase()
|
||||
if (!img_ext.contains(ext)) { return }
|
||||
let data = await app.vault.readBinary(tfile)
|
||||
let data = await this.app.vault.readBinary(tfile)
|
||||
let text = this.arrayBufferToBase64(data);
|
||||
|
||||
let bs64 = `data:image/png;base64,${text}`
|
||||
|
|
|
|||
Loading…
Reference in a new issue