Skip to content

Commit

Permalink
Replace include_favicon undefined check with nullish coalescing operator
Browse files Browse the repository at this point in the history
Co-Authored-By: Alex Moon <moonmeister@users.noreply.github.com>
  • Loading branch information
cycleseven and moonmeister authored Apr 15, 2020
1 parent cd311d7 commit 93fa5d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/gatsby-plugin-manifest/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,7 @@ const makeManifest = async ({
const suffix =
shouldLocalize && pluginOptions.lang ? `_${pluginOptions.lang}` : ``

const faviconIsEnabled =
typeof pluginOptions.include_favicon !== `undefined`
? pluginOptions.include_favicon
: true
const faviconIsEnabled = pluginOptions.include_favicon ?? true

// Delete options we won't pass to the manifest.webmanifest.
delete manifest.plugins
Expand Down

0 comments on commit 93fa5d4

Please sign in to comment.