diff options
author | Vitaly Takmazov | 2024-10-23 03:50:15 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-10-23 03:50:34 +0300 |
commit | b14fd63abe16739aa3a04dd50806ebb62190b0c3 (patch) | |
tree | fee1522a21e0d2c9c907be51147ada5d4cfdda0f | |
parent | 6e3c7498fc315113e5a4e5a632be00363c0f9ccf (diff) |
embed: fix for <video /> previews in Safari
-rw-r--r-- | vnext/src/utils/embed.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/utils/embed.js b/vnext/src/utils/embed.js index 9c10d6d8..d020dbc2 100644 --- a/vnext/src/utils/embed.js +++ b/vnext/src/utils/embed.js @@ -200,7 +200,7 @@ function getEmbeddableLinkTypes() { className: 'video compact', re: /\.(webm|mp4|m4v|ogv)(?:\?[\w&;?=]*)?$/i, makeNode: function(aNode, reResult, div) { - div.innerHTML = `<video src="${aNode.href}" title="${aNode.href}" controls></video>` + div.innerHTML = `<video src="${aNode.href}#t=0.001" title="${aNode.href}" controls></video>` return div } }, |