minor bug fix
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user