1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00

Update manifestFromObject.ts

This commit is contained in:
Laurent Cozic 2023-07-25 16:26:00 +01:00 committed by GitHub
parent d8a54da496
commit 0c4513838a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ export default function manifestFromObject(o: any): PluginManifest {
};
const getIcons = (): Icons => {
if (!o.icons) return null;
for (const size of [16, 32, 48, 128]) {
if (o.icons[size as keyof Icons]) return o.icons;
}