Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
[webpack-config] fix: handle empty favicons (#2423)
Browse files Browse the repository at this point in the history
* fix: handle empty favicons

* fix: handle empty string
  • Loading branch information
jaulz authored Aug 26, 2020
1 parent bad2c62 commit 8eea16a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/pwa/src/Manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,12 @@ export function getFaviconIconConfig(config: ExpoConfig): IconOptions | null {
backgroundColor: 'transparent',
});

// Allow empty objects
// If the favicon is set but empty, we assume that the user does not want us to generate a favicon
if (typeof config.web?.favicon === 'string') {
if (!config.web?.favicon) {
return null;
}

return validate(config.web.favicon);
}
if (typeof config.icon === 'string') {
Expand Down

0 comments on commit 8eea16a

Please sign in to comment.