mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Update src/components/WatchVideo.vue
This commit is contained in:
parent
9b2fec0646
commit
134afd5235
1 changed files with 1 additions and 1 deletions
|
@ -463,7 +463,7 @@ export default {
|
||||||
if (!this.isEmbed) this.fetchSubscribedStatus();
|
if (!this.isEmbed) this.fetchSubscribedStatus();
|
||||||
|
|
||||||
const parser = new DOMParser();
|
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 => {
|
xmlDoc.querySelectorAll("a").forEach(elem => {
|
||||||
if (!elem.innerText.match(/(?:[\d]{1,2}:)?(?:[\d]{1,2}):(?:[\d]{1,2})/))
|
if (!elem.innerText.match(/(?:[\d]{1,2}:)?(?:[\d]{1,2}):(?:[\d]{1,2})/))
|
||||||
elem.outerHTML = elem
|
elem.outerHTML = elem
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue