Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Aug 20, 2023
1 parent 8b82bc8 commit 11f9b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion og_image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function createOgImage(request: Request): Promise<Uint8Array> {
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 {
Expand Down

0 comments on commit 11f9b58

Please sign in to comment.