Closed bhdouglass closed 3 years ago
Hey Brian, it's currently looking for the following patterns: https://github.com/timsueberkrueb/webber/blob/master/src/core.rs#L52 Supporting the PWA manifest would be a great enhancement, though.
Ok, cool, so is it using the apple icon or favicon first?
It's currently using the favicon first, which is probably a mistake. It also ignores the sizes attribute. There is definitely some room for improvement here :)
Ok, so I'm thinking maybe check if there is a manifest and parse that first for info. If no manifest, then check for and find the best apple icon, falling back to the opengraph icon, and finally using the favicon. What do you think?
Sounds good :+1:
This is now finally in progress. Initial PWA support has been implemented.
TODO:
Done.
It appears as if it's just the favicon that is being parsed for use as the app's image. Is there any way the web manifest or other icons (opengraph/apple) could be parse for a better option (If it's not doing that already)?