Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
fix: check Vue.prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
ziaenezhad authored and TiagoDanin committed Sep 7, 2019
1 parent b2c9688 commit 241211d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function (ctx, inject) {
}
ctx.app.head.title = nuxtSeo.createTitle(options)
ctx.app.head.meta = nuxtSeo.createMeta(options, ctx.app.head.meta, template)
if (Vue.prototype.$meta) {
if (Vue.prototype && Vue.prototype.$meta) {
if (Vue.prototype.$nuxt && Vue.prototype.$nuxt.$options && Vue.prototype.$nuxt.$options.head) {
Vue.prototype.$nuxt.$options.head = ctx.app.head
}
Expand Down

0 comments on commit 241211d

Please sign in to comment.