diff options
Diffstat (limited to 'vnext/src/utils/embed.js')
-rw-r--r-- | vnext/src/utils/embed.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vnext/src/utils/embed.js b/vnext/src/utils/embed.js index 25c37142..d4cbab8e 100644 --- a/vnext/src/utils/embed.js +++ b/vnext/src/utils/embed.js @@ -285,7 +285,7 @@ function embedLinks(aNodes, container) { * @param {string} beforeNodeSelector * @param {string} allLinksSelector */ -function embedLinksToX(x, beforeNodeSelector, allLinksSelector) { +export function embedLinksToX(x, beforeNodeSelector, allLinksSelector) { let isCtsPost = false; let allLinks = x.querySelectorAll(allLinksSelector); @@ -323,7 +323,7 @@ function embedLinksToPost() { /** * Embed all the links in all messages/replies on the page. */ -function embedAll() { +export function embedAll() { if (document.querySelector('#content article[data-mid]')) { embedLinksToArticles(); } else { @@ -331,6 +331,4 @@ function embedAll() { } } -exports.embedAll = embedAll; -exports.embedLinksToX = embedLinksToX; -exports.format = juickFormat; +export const format = juickFormat; |