Skip to content

Commit

Permalink
Handle undefined opts.env (corrected)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin authored and mattgodbolt committed Jan 24, 2023
1 parent d0d1ede commit 9e110fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Expand Up @@ -184,9 +184,9 @@ const isDevMode = () => process.env.NODE_ENV !== 'production';
function getFaviconFilename() {
if (isDevMode()) {
return 'favicon-dev.ico';
} else if (opts.env?.includes('beta')) {
} else if (opts.env && opts.env.includes('beta')) {
return 'favicon-beta.ico';
} else if (opts.env?.includes('staging')) {
} else if (opts.env && opts.env.includes('staging')) {
return 'favicon-staging.ico';
} else {
return 'favicon.ico';
Expand Down

0 comments on commit 9e110fa

Please sign in to comment.