From 11f9b58ea96b030c454cc0a8d1bdaed23e35a39a Mon Sep 17 00:00:00 2001 From: timonson Date: Sun, 20 Aug 2023 11:58:46 +0200 Subject: [PATCH] - --- og_image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/og_image.ts b/og_image.ts index 7251b98..3ac767a 100644 --- a/og_image.ts +++ b/og_image.ts @@ -68,7 +68,7 @@ export async function createOgImage(request: Request): Promise { let imageHeight = parseInt(url.searchParams.get("height") || "0"); const imageFormat = parsedPathname.ext.slice(1); console.log(parsedPathname, imageFormat, isImageFormat(imageFormat)); - if (isImageFormat(imageFormat)) { + if (isImageFormat(imageFormat) || imageFormat === "") { if (theme === "light" || theme === "dark") { drawBackground(ctx, canvasSize, theme); } else {