PWABuilder
PWABuilder copied to clipboard
`findBestAppIcon` should choose the last among equally suitable icons, not the first
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