web: use simple transform stream for export progress

This commit is contained in:
Abdullah Atta
2024-01-17 21:43:21 +05:00
parent becc00d2ee
commit 2bb3652be2
2 changed files with 16 additions and 5 deletions

View File

@@ -37,9 +37,9 @@ export class ExportStream extends TransformStream<Note, ZipFile> {
return;
}
if (!note || format === "pdf") return;
if (format === "pdf") return;
const result = await exportNote(note, format);
const result = await exportNote(note, { format });
if (!result) return;
const { filename, content } = result;