diff options
author | Vitaly Takmazov | 2024-01-26 13:52:58 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-01-26 13:52:58 +0300 |
commit | 91c26b85455e09cd2525aabe60d4b7a1de50562a (patch) | |
tree | 0b1110e5874fd59f6ce71b3e07f67c05634510a6 | |
parent | 01eb71dc27c2e266f196cfc4f2ce338f2f3c784d (diff) |
embed.js: only first link
-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 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) { |