@ecency/render-helper 2.5.14 → 2.5.15
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/node/index.mjs
CHANGED
|
@@ -1615,8 +1615,11 @@ function iframe(el, parentDomain = "ecency.com", forApp = false, renderOptions)
|
|
|
1615
1615
|
return;
|
|
1616
1616
|
}
|
|
1617
1617
|
if (src.match(SKATEHIVE_IPFS_REGEX)) {
|
|
1618
|
-
el.
|
|
1619
|
-
|
|
1618
|
+
const video = el.ownerDocument.createElement("video");
|
|
1619
|
+
video.setAttribute("src", src);
|
|
1620
|
+
video.setAttribute("controls", "");
|
|
1621
|
+
el.parentNode.insertBefore(video, el);
|
|
1622
|
+
el.parentNode.removeChild(el);
|
|
1620
1623
|
return;
|
|
1621
1624
|
}
|
|
1622
1625
|
if (src.match(SKATEHYPE_EMBED_REGEX)) {
|