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:
+1
-13
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user