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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user