Permalink
Browse files

feat(manifest): support crossorigin option (#71)

  • Loading branch information...
gyarasu authored and pi0 committed Aug 24, 2018
1 parent 12c17dc commit ccb2c339e9092c162c29dab9c36bb7cfdd51883a
Showing with 3 additions and 1 deletion.
  1. +3 −1 packages/manifest/index.js
@@ -72,7 +72,9 @@ function addManifest (options) {
// Add manifest meta
if (!find(this.options.head.link, 'rel', 'manifest')) {
this.options.head.link.push({ rel: 'manifest', href: fixUrl(`${manifest.publicPath}/${manifestFileName}`) })
const baseAttribute = { rel: 'manifest', href: fixUrl(`${manifest.publicPath}/${manifestFileName}`) }
const attribute = manifest.crossorigin ? Object.assign({}, baseAttribute, { crossorigin: manifest.crossorigin }) : baseAttribute
this.options.head.link.push(attribute)
} else {
console.warn('Manifest meta already provided!')
}

0 comments on commit ccb2c33

Please sign in to comment.