Support links to video hosts other than YouTube

This commit is contained in:
rubenwardy
2022-01-25 22:13:48 +00:00
parent 8f2a87e5ed
commit e20863a7e1
8 changed files with 22 additions and 10 deletions

View File

@@ -24,6 +24,8 @@ document.querySelectorAll(".video-embed").forEach(ele => {
ele.setAttribute("data-src", href);
ele.removeAttribute("href");
ele.querySelector(".label").innerText = "YouTube";
}
} catch (e) {
console.error(url);