Lil bit of cleanup

This commit is contained in:
Oliver-Akins 2025-01-26 15:16:51 -07:00
parent dd8ba4df83
commit de0457a111
3 changed files with 7 additions and 4 deletions

View file

@ -96,7 +96,7 @@ export class RipCryptIcon extends StyledShadowElement(HTMLElement) {
async #getIcon(path) {
// Cache hit!
if (this.constructor._cache.has(path)) {
Logger.debug(`Icon ${path} cache hit`);
Logger.debug(`Image ${path} cache hit`);
return this.constructor._cache.get(path);
};
@ -110,7 +110,7 @@ export class RipCryptIcon extends StyledShadowElement(HTMLElement) {
return;
};
Logger.debug(`Adding icon ${path} to the cache`);
Logger.debug(`Adding image ${path} to the cache`);
const svg = this.#parseSVG(await r.text());
this.constructor._cache.set(path, svg);
return svg;