PWABuilder icon indicating copy to clipboard operation
PWABuilder copied to clipboard

`findBestAppIcon` should choose the last among equally suitable icons, not the first

Open cairomassimo opened this issue 2 years ago • 0 comments

Per https://w3c.github.io/manifest/#icons-member:

If there are multiple equally appropriate images in icons, a user agent MUST use the last one declared in order at the time that the user agent collected the list of icons.

PWABuilder should mimic user agents and follow this rule, but does not.

See: https://github.com/pwa-builder/PWABuilder/blob/373a64c4c29ea27fefea7141ab8ff25d75f7d204/apps/pwabuilder/src/script/utils/icons.ts#L35

cairomassimo avatar Oct 29 '23 18:10 cairomassimo