Open flx-sta opened 8 months ago
/** * Add <img> for icons, prefixed with codeBasePath and optional prefix. * @param {Element} [element] Element containing icons * @param {string} [prefix] prefix to be added to icon the src */ function decorateIcons(element, prefix = '') { const icons = element.querySelectorAll('span.icon'); icons.forEach((span) => { decorateIcon(span, prefix); }); }
/** * Add <img> for icons, prefixed with codeBasePath and optional prefix. * @param {Element} [element] Element containing icons * @param {string} [prefix] prefix to be added to icon the src */ function decorateIcons(element, prefix = '') { const icons = [...element.querySelectorAll('span.icon')]; icons.forEach((span) => { decorateIcon(span, prefix); }); }
n/a
Expected Behaviour
Actual Behaviour
Reproduce Scenario (including but not limited to)
n/a
Steps to Reproduce
n/a
Platform and Version
n/a
Sample Code that illustrates the problem
n/a
Logs taken while reproducing problem
n/a