fix bad bug

This commit is contained in:
MathMan05
2026-06-20 13:59:28 -05:00
parent 8489c2cb83
commit 2fd93f549b
+2
View File
@@ -456,6 +456,8 @@ class Embed {
if (this.json.video) {
img.onclick = async () => {
if (this.json.video) {
const url = new URL(this.json.video.url);
if (url.host !== "youtube.com") return;
img.remove();
const iframe = document.createElement("iframe");
iframe.src = this.json.video.url + "?autoplay=1";