You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually I fetched the different icons with something like.
var icons = import.meta.glob(`.././assets/*.svg`, { as: "raw", eager: true })
for (const item in icons) {
body.innerHTML = icons[item]
let name = item.formatx(`../assets/$V.svg`)
let color = body.querySelector("#color")?.getAttributeNS(null, "fill") || "black"
let size = undefined // TODO
result.push(await icon(`${name} c-${color}`, body.querySelector("svg") || undefined))
}
But this returns
Is there a better way?
The text was updated successfully, but these errors were encountered:
Usually I fetched the different icons with something like.
But this returns
Is there a better way?
The text was updated successfully, but these errors were encountered: