2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-19 21:10:34 +03:00

implement fix for #9 edge-case

This commit is contained in:
Declan de Wet
2016-11-08 03:55:55 +02:00
parent ebb101d8e7
commit 6ad56ec73e
7 changed files with 38 additions and 45 deletions
+1 -13
View File
@@ -9,20 +9,8 @@ import generateServerInjector from './generateServerInjector'
* @return {Object} - server meta info with `toString` methods
*/
export default function inject () {
const Vue = this.constructor
// get meta info with sensible defaults
const info = Vue.util.extend({
title: '',
htmlAttrs: {},
bodyAttrs: {},
meta: [],
script: [],
noscript: [],
style: [],
link: [],
base: []
}, getMetaInfo(this.$root))
const info = getMetaInfo(this.$root)
// generate server injectors
for (let key in info) {