minor bug fix

This commit is contained in:
MathMan05 2024-12-24 09:13:40 -06:00
parent a128bb2520
commit 3a1eac3df3

View file

@ -377,7 +377,7 @@ class Embed {
img.remove(); img.remove();
const iframe = document.createElement("iframe"); const iframe = document.createElement("iframe");
iframe.src = this.json.video.url + "?autoplay=1"; 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.width = this.json.thumbnail.width + "px";
iframe.style.height = this.json.thumbnail.height + "px"; iframe.style.height = this.json.thumbnail.height + "px";
} }