diff options
Diffstat (limited to 'juick-server/src/main/assets/embed.js')
-rw-r--r-- | juick-server/src/main/assets/embed.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/juick-server/src/main/assets/embed.js b/juick-server/src/main/assets/embed.js index 25c37142..d4cbab8e 100644 --- a/juick-server/src/main/assets/embed.js +++ b/juick-server/src/main/assets/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; |