From 2d357a5a7295c5be961ee09117da9da736ab82bf Mon Sep 17 00:00:00 2001 From: toni-santos Date: Wed, 12 Feb 2025 12:59:17 +0000 Subject: [PATCH] fix: icon replaced banners now using textContent --- content-scripts/modules/icons/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content-scripts/modules/icons/index.tsx b/content-scripts/modules/icons/index.tsx index c7b81ce..0de7788 100644 --- a/content-scripts/modules/icons/index.tsx +++ b/content-scripts/modules/icons/index.tsx @@ -180,7 +180,7 @@ const replaceBgImages = (): void => { const replaceBanners = (): void => { Object.entries(BANNER_ICON_MAP).forEach(([k, v]) => { document.querySelectorAll(`.${k}`).forEach((i) => { - const span = {i.innerHTML}; + const span = {i.textContent}; // TODO (thePeras): Use , but you need to expand the Icon component to support fill and style const icon = (