2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-16 11:20:34 +03:00

Merge pull request #47 from shyiko/fix-undefined-defaultoptions

Fix undefined defaultOptions
This commit is contained in:
Declan de Wet
2017-01-10 16:17:33 +02:00
committed by GitHub
+5 -5
View File
@@ -9,11 +9,6 @@ import {
VUE_META_TAG_LIST_ID_KEY_NAME
} from './constants'
// automatic install
if (typeof Vue !== 'undefined') {
Vue.use(VueMeta)
}
// set some default options
const defaultOptions = {
keyName: VUE_META_KEY_NAME,
@@ -22,6 +17,11 @@ const defaultOptions = {
tagIDKeyName: VUE_META_TAG_LIST_ID_KEY_NAME
}
// automatic install
if (typeof Vue !== 'undefined') {
Vue.use(VueMeta)
}
/**
* Plugin install function.
* @param {Function} Vue - the Vue constructor.