minor bug fix
This commit is contained in:
parent
a128bb2520
commit
3a1eac3df3
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue