aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/utils/embed.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-07 09:28:16 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit21a046d9bb6e3be3253afc75e11ddb6c14fcc65c (patch)
treef36a7fca3d719946788a070e555074e22a289ef9 /vnext/src/utils/embed.js
parentcf259373f2cb7e4bd47e337eec349d805b228113 (diff)
@babel/polyfill
Diffstat (limited to 'vnext/src/utils/embed.js')
-rw-r--r--vnext/src/utils/embed.js8
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;