aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/utils
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-01-26 13:52:58 +0300
committerGravatar Vitaly Takmazov2024-01-26 13:52:58 +0300
commit91c26b85455e09cd2525aabe60d4b7a1de50562a (patch)
tree0b1110e5874fd59f6ce71b3e07f67c05634510a6 /vnext/src/utils
parent01eb71dc27c2e266f196cfc4f2ce338f2f3c784d (diff)
embed.js: only first link
Diffstat (limited to 'vnext/src/utils')
-rw-r--r--vnext/src/utils/embed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/utils/embed.js b/vnext/src/utils/embed.js
index 514ce1ce..11434938 100644
--- a/vnext/src/utils/embed.js
+++ b/vnext/src/utils/embed.js
@@ -369,7 +369,7 @@ function embedLinks(aNodes, container) {
* @param {string} allLinksSelector
*/
export function embedLinksToX(x, beforeNodeSelector, allLinksSelector) {
- let allLinks = x.querySelectorAll(allLinksSelector)
+ let allLinks = [x.querySelector(allLinksSelector)]
let existingContainer = x.querySelector('div.embedContainer')
if (existingContainer) {