IconViewer: fix web related svgs (#583)

This commit is contained in:
prism 2025-12-19 23:23:54 +01:00 • committed by GitHub
parent 6ad57d76c1
commit 31fdc57454
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,6 +40,7 @@ export function findAllIcons() {
if (typeof m !== "function") return false;
const str = m.toString?.() ?? "";
if (str.includes("direction:")) return false;
if (str.includes('viewBox:"0 0 272 143"')) return false;
return str.includes("viewBox:") && str.includes("color:") && (str.includes("foreground:") || str.includes("colorClass:"));
});
}