Copyright panel: port to svelte, generate licenses detects 'mostly white' icons now, fix #2041

This commit is contained in:
Pieter Vander Vennet 2024-07-23 17:59:06 +02:00
parent f2d2240896
commit 2aa77b7b47
9 changed files with 331 additions and 245 deletions

View file

@ -123,7 +123,7 @@ export default class ScriptUtils {
return ScriptUtils.DownloadJSON(url)
}
public static async ReadSvg(path: string): Promise<any> {
public static async ReadSvg(path: string): Promise<SVGElement> {
if (!existsSync(path)) {
throw "File not found: " + path
}