From 3a1eac3df3c6f874ec9eadc82b4ff45cef55f8de Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 24 Dec 2024 09:13:40 -0600 Subject: [PATCH] minor bug fix --- src/webpage/embed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpage/embed.ts b/src/webpage/embed.ts index 50dd681..f957431 100644 --- a/src/webpage/embed.ts +++ b/src/webpage/embed.ts @@ -377,7 +377,7 @@ class Embed { img.remove(); const iframe = document.createElement("iframe"); iframe.src = this.json.video.url + "?autoplay=1"; - if (this.json.thumbnail.width && this.json.thumbnail.width) { + if (this.json.thumbnail.width && this.json.thumbnail.height) { iframe.style.width = this.json.thumbnail.width + "px"; iframe.style.height = this.json.thumbnail.height + "px"; }