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

Fix undefined defaultOptions

This commit is contained in:
Stanley Shyiko
2017-01-09 22:59:51 -08:00
parent 68ceffe822
commit 4153839ab6
+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.