Skip to content

Commit

Permalink
fix(app/shortcode): function name and logger
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Mar 4, 2024
1 parent 39d2a79 commit be672be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/app/shortcode/alwatr-icon.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ const cache = {};
* @param {string} customClass custom class added to svg span container
* @returns {Promise<string>} svg content inside of a span
*/
async function iconLoader(icon, customClass = '') {
logger.logMethodArgs?.('iconLoader', {icon, customClass});
async function alwatrIcon(icon, customClass = '') {
if (icon.indexOf('/') === -1) {
icon = 'material/' + icon;
}
Expand Down Expand Up @@ -41,4 +40,4 @@ async function iconLoader(icon, customClass = '') {
return `<span class="alwatr-icon ${customClass}">${cache[icon]}</span>`;
}

module.exports = {iconLoader};
module.exports = {alwatrIcon};

0 comments on commit be672be

Please sign in to comment.