Skip to content

Commit

Permalink
refactor: purpose as const
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Mar 12, 2020
1 parent 0ff11d4 commit 5638999
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/icon/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ async function generateIcons (options) {
}

// Generate _purpose
options._purpose = options.purpose ? options.purpose.join(' ') : undefined
const purpose = options.purpose ? options.purpose.join(' ') : undefined

// Generate _assetIcons
options._assetIcons = options.sizes.map(size => ({
src: joinUrl(options.publicPath, options._icons[size]),
sizes: `${size}x${size}`,
type: 'image/png',
purpose: options._purpose
purpose
}))
}

Expand Down

0 comments on commit 5638999

Please sign in to comment.