Plugin: fix syncing external "binary" tiddlers

Found while importing the tiddlywiki.com wiki
This commit is contained in:
Val Packett 2023-07-24 05:08:15 -03:00
parent 683cc6478c
commit 77f2826ce9

View file

@ -84,6 +84,7 @@ Formatted with `deno fmt`.
}
async function encodeTiddler(tiddler, isBin) {
if (!tiddler.fields.text) isBin = false;
const padTo = 256;
let flags = 0, gzchunks, gzlen = 0, binstr;
const jsonstr = JSON.stringify(