IconViewer: fix web related svgs (#583)
This commit is contained in:
parent
6ad57d76c1
commit
31fdc57454
1 changed files with 1 additions and 0 deletions
|
|
@ -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:"));
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue