Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit f6b1eb7

Browse files
committed
Ensure that getManifestIcon does not fail if manifest.icons member is missing
1 parent 8d894d3 commit f6b1eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/platformBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function PlatformBase (id, name, packageName, baseDir) {
125125
self.getManifestIcon = function (manifest, size) {
126126
// assumes icons are square
127127
var dimensions = size.toLowerCase().split('x');
128-
return manifest.icons[dimensions[0]];
128+
return manifest.icons && manifest.icons[dimensions[0]];
129129
};
130130

131131
/**

0 commit comments

Comments
 (0)