mirror of
https://codeberg.org/valpackett/tiddlypwa.git
synced 2025-12-15 15:10:32 -08:00
Plugin: fix syncing external "binary" tiddlers
Found while importing the tiddlywiki.com wiki
This commit is contained in:
parent
683cc6478c
commit
77f2826ce9
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ Formatted with `deno fmt`.
|
||||||
}
|
}
|
||||||
|
|
||||||
async function encodeTiddler(tiddler, isBin) {
|
async function encodeTiddler(tiddler, isBin) {
|
||||||
|
if (!tiddler.fields.text) isBin = false;
|
||||||
const padTo = 256;
|
const padTo = 256;
|
||||||
let flags = 0, gzchunks, gzlen = 0, binstr;
|
let flags = 0, gzchunks, gzlen = 0, binstr;
|
||||||
const jsonstr = JSON.stringify(
|
const jsonstr = JSON.stringify(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue