From 91c26b85455e09cd2525aabe60d4b7a1de50562a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 26 Jan 2024 13:52:58 +0300 Subject: embed.js: only first link --- vnext/src/utils/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vnext') 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) { -- cgit v1.2.3