From 3ab5cab74e6ef6bae12c1a674041715b306a03ef Mon Sep 17 00:00:00 2001
From: jsgaston <69969971+jsgaston@users.noreply.github.com>
Date: Sat, 23 Aug 2025 23:51:55 +0200
Subject: [PATCH] Update CuentosHistorias.html
---
CuentosHistorias.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/CuentosHistorias.html b/CuentosHistorias.html
index 0e98948b..b2970a24 100644
--- a/CuentosHistorias.html
+++ b/CuentosHistorias.html
@@ -145,7 +145,7 @@
Cuentos Publicados
if (url) {
const youtubeRegex = /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/;
const wistiaRegex = /^(?:https?:\/\/)?(?:www\.)?wistia\.(?:com|net)\/medias\/([a-zA-Z0-9_-]+)/;
-
+
let match = url.match(youtubeRegex);
let embedUrl;
@@ -240,7 +240,7 @@ Cuentos Publicados
const url = link.href;
let match = url.match(youtubeRegex);
let embedUrl;
-
+
if (match) {
embedUrl = `https://www.youtube.com/embed/${match[1]}`;
} else {
@@ -249,7 +249,7 @@ Cuentos Publicados
embedUrl = `https://fast.wistia.net/embed/iframe/${match[1]}`;
}
}
-
+
if (embedUrl) {
const iframe = document.createElement('iframe');
iframe.setAttribute('src', embedUrl);