From 75a4b40eebb3e4823381fa873418d507d569561b Mon Sep 17 00:00:00 2001 From: Andrei Bogdan Date: Fri, 17 Nov 2023 16:11:32 +0200 Subject: [PATCH] Add new logic for decorateIcons and comments --- solutions/blocks/quote/quote.js | 2 +- solutions/scripts/lib-franklin.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/solutions/blocks/quote/quote.js b/solutions/blocks/quote/quote.js index 55c3beb32..fd176c411 100644 --- a/solutions/blocks/quote/quote.js +++ b/solutions/blocks/quote/quote.js @@ -60,5 +60,5 @@ export default async function decorate(block) { }); block.replaceChildren(quoteWrap); - await decorateIcons(block); + decorateIcons(block); } diff --git a/solutions/scripts/lib-franklin.js b/solutions/scripts/lib-franklin.js index f1730c44b..cc8cecbb0 100644 --- a/solutions/scripts/lib-franklin.js +++ b/solutions/scripts/lib-franklin.js @@ -248,6 +248,10 @@ async function internalDecorateIcons(element) { let previousDecoration = Promise.resolve(); +/** + * Replace icons with inline SVG and prefix with codeBasePath. + * @param {Element} [element] Element containing icons + */ export async function decorateIcons(element) { previousDecoration = previousDecoration.then(() => internalDecorateIcons(element)); await previousDecoration;