We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1abee21 commit c5dc519Copy full SHA for c5dc519
1 file changed
src/generator.ts
@@ -58,9 +58,9 @@ export async function generate(app: App,
58
const binary = Uint8Array.from(atob(base64), c => c.charCodeAt(0));
59
const lock = app.vault.getFileByPath(path);
60
if (lock) {
61
- await app.vault.modifyBinary(lock, binary);
+ await app.vault.modifyBinary(lock, binary.buffer);
62
} else {
63
- await app.vault.createBinary(path, binary);
+ await app.vault.createBinary(path, binary.buffer);
64
}
65
66
div.remove();
0 commit comments