Skip to content

Commit 63bf437

Browse files
committed
coderabbit
1 parent 2fe570f commit 63bf437

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/layouts/global.astro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ const fullTitle = title ? `${title} - Media over QUIC` : "Media over QUIC";
2424
const fullDescription = description
2525
? `Media over QUIC: ${description}`
2626
: "Media over QUIC is a new live media protocol designed for simplicity and scale. It uses new browser technologies like WebTransport and WebCodecs to deliver media with latency that rivals WebRTC.";
27-
const ogImage = frontmatter?.cover
28-
? `${siteUrl}${frontmatter.cover}`
29-
: `${siteUrl}/layout/logo.png`;
27+
const ogImage = new URL(frontmatter?.cover ?? "/layout/logo.png", siteUrl).toString();
3028
---
3129

3230
<!doctype html>

0 commit comments

Comments
 (0)