mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-28 02:54:08 +00:00
fix bad bug
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user