Permalink
Browse files

fix(manifest): correctly omit internal options

  • Loading branch information...
pi0 committed Jun 5, 2017
1 parent 0768246 commit 47559b01ec97054109980e9b9eee75f88fa6eb3c
Showing with 3 additions and 5 deletions.
  1. +3 −5 modules/manifest/index.js
@@ -41,8 +41,6 @@ module.exports = function nuxtManifest (options) {
// Generate icons
if (manifest._icons) {
// TODO
delete manifest._icons
}
// Head Meta Tags
@@ -78,8 +76,6 @@ module.exports = function nuxtManifest (options) {
}
this.options.head.htmlAttrs.lang = manifest.lang
}
delete manifest._meta
}
// OpenGraph headers
@@ -99,11 +95,13 @@ module.exports = function nuxtManifest (options) {
this.options.head.meta.push({property: 'og:description', content: manifest.description})
}
delete manifest._openGraph
}
// Cleanup internals
delete manifest.src
delete manifest._icons
delete manifest._openGraph
delete manifest._meta
// Stringify manifest & generate hash
const manifestSource = JSON.stringify(manifest)

0 comments on commit 47559b0

Please sign in to comment.