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

Commit e96dead

Browse files
authored
Merge pull request #62 from pwa-builder/supportUploadedImg
adding src mapping for uploaded images to the platformbase
2 parents fc1112a + fe3862c commit e96dead

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/platformBase.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ function PlatformBase (id, name, packageName, baseDir, extendedCfg) {
154154
*/
155155
self.getEmbeddedIconUri = function(manifest, iconFromGetManifestIcons) {
156156
// in this case getManifestIcons() already returns the uri
157-
return iconFromGetManifestIcons.url || iconFromGetManifestIcons;
157+
// url doesn't seem to be in use in most of the new manifest information
158+
return iconFromGetManifestIcons.url || iconFromGetManifestIcons.src || iconFromGetManifestIcons;
158159
};
159160

160161
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwabuilder-lib",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"description": "PWA Builder Core Library",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)