@ecency/render-helper 2.4.17 → 2.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser/index.js
CHANGED
|
@@ -899,7 +899,7 @@ function a(el, forApp, parentDomain = "ecency.com", seoContext) {
|
|
|
899
899
|
const imgEls2 = el.getElementsByTagName("img");
|
|
900
900
|
if (imgEls2.length === 1 || el.textContent.trim() === href) {
|
|
901
901
|
if ((match[1] || match[2]) && match[3]) {
|
|
902
|
-
const videoHref = `https://play.3speak.tv/
|
|
902
|
+
const videoHref = `https://play.3speak.tv/watch?v=${match[3]}&mode=iframe`;
|
|
903
903
|
el.setAttribute("class", "markdown-video-link markdown-video-link-speak");
|
|
904
904
|
el.removeAttribute("href");
|
|
905
905
|
el.setAttribute("data-embed-src", videoHref);
|
|
@@ -1035,7 +1035,7 @@ function iframe(el, parentDomain = "ecency.com") {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
if (src.match(SPEAK_EMBED_REGEX)) {
|
|
1037
1037
|
let normalizedSrc = src.replace(/(?:play\.)?3speak\.[a-z]+/i, "play.3speak.tv");
|
|
1038
|
-
normalizedSrc = normalizedSrc.replace(/\/
|
|
1038
|
+
normalizedSrc = normalizedSrc.replace(/\/embed\?/, "/watch?");
|
|
1039
1039
|
const hasMode = /[?&]mode=/.test(normalizedSrc);
|
|
1040
1040
|
if (!hasMode) {
|
|
1041
1041
|
normalizedSrc = `${normalizedSrc}&mode=iframe`;
|