Skip to content

Commit

Permalink
Add new logic for decorateIcons and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Bogdan committed Nov 17, 2023
1 parent 8e377e8 commit 75a4b40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/blocks/quote/quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ export default async function decorate(block) {
});
block.replaceChildren(quoteWrap);

await decorateIcons(block);
decorateIcons(block);
}
4 changes: 4 additions & 0 deletions solutions/scripts/lib-franklin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75a4b40

Please sign in to comment.