nuxt-seo
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -26,9 +26,14 @@ const Vue = require('vue') | ||
if (Vue.prototype && Vue.prototype.$meta) { // Vue-meta is enabled | ||
if (this.$nuxt && this.$nuxt.$options && this.$nuxt.$options.head) { | ||
this.$nuxt.$options.head = ctx.app.head | ||
} else if (Vue.prototype.$nuxt && Vue.prototype.$nuxt.$options && Vue.prototype.$nuxt.$options.head) { | ||
Vue.prototype.$nuxt.$options.head = ctx.app.head | ||
try { | ||
if (Vue.prototype && Vue.prototype.$meta) { // Vue-meta is enabled | ||
if (this.$nuxt && this.$nuxt.$options && this.$nuxt.$options.head) { | ||
this.$nuxt.$options.head = ctx.app.head | ||
} else if (Vue.prototype.$nuxt && Vue.prototype.$nuxt.$options && Vue.prototype.$nuxt.$options.head) { | ||
Vue.prototype.$nuxt.$options.head = ctx.app.head | ||
} | ||
} | ||
} | ||
catch ( err ){ | ||
// unable to parse vue head | ||
} | ||
@@ -35,0 +40,0 @@ deb('HEAD:', ctx.app.head) |
@@ -5,3 +5,3 @@ { | ||
"preferGlobal": false, | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "SEO / HTML Meta Tags Module for NuxtJS", | ||
@@ -98,3 +98,3 @@ "author": { | ||
], | ||
"gitHead": "5b572a19f634fd871e271e6fdf2fa36a0488a937" | ||
"gitHead": "792b4c131903e157d578a6309bb66c96e8d2956d" | ||
} |
13375
304