diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 624cf67f..b1f6aea8 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -463,7 +463,7 @@ export default { if (!this.isEmbed) this.fetchSubscribedStatus(); const parser = new DOMParser(); - const xmlDoc = parser.parseFromString(this.video.description, "text/html"); + const xmlDoc = parser.parseFromString(this.video.description, "text/html"); xmlDoc.querySelectorAll("a").forEach(elem => { if (!elem.innerText.match(/(?:[\d]{1,2}:)?(?:[\d]{1,2}):(?:[\d]{1,2})/)) elem.outerHTML = elem.getAttribute("href").replace(/https:\/\/www\.youtube\.com\/watch\?v=/, "/watch?v=");