Skip to content

Commit 3bd8c2e

Browse files
committed
fixup! feat: safe folder access
1 parent 3ab3bd0 commit 3bd8c2e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export async function generate(app: App,
5252
if (plugin.settings.mode == "quality") {
5353
title.addClass("thumbnail-heading");
5454
}
55+
5556
const data = await domtoimage.toJpeg(div);
5657
const base64 = data.split(",")[1];
5758
if (!base64) throw new Error("[ERR] [TML] [GEN] Couldn't generate thumbnail");

0 commit comments

Comments
 (0)