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:
parent
d8a54da496
commit
0c4513838a
@ -37,6 +37,7 @@ export default function manifestFromObject(o: any): PluginManifest {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getIcons = (): Icons => {
|
const getIcons = (): Icons => {
|
||||||
|
if (!o.icons) return null;
|
||||||
for (const size of [16, 32, 48, 128]) {
|
for (const size of [16, 32, 48, 128]) {
|
||||||
if (o.icons[size as keyof Icons]) return o.icons;
|
if (o.icons[size as keyof Icons]) return o.icons;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user