mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-21 08:10:34 +03:00
chore: add separate tests for server and browser plugin
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { version } from '../package.json'
|
||||
import createMixin from './shared/mixin'
|
||||
import setOptions from './shared/options'
|
||||
import { isUndefined } from './shared/typeof'
|
||||
import $meta from './client/$meta'
|
||||
|
||||
/**
|
||||
@@ -17,4 +18,10 @@ function VueMeta(Vue, options = {}) {
|
||||
|
||||
VueMeta.version = version
|
||||
|
||||
// automatic install
|
||||
if (!isUndefined(window) && !isUndefined(window.Vue)) {
|
||||
/* istanbul ignore next */
|
||||
Vue.use(VueMeta)
|
||||
}
|
||||
|
||||
export default VueMeta
|
||||
|
||||
Reference in New Issue
Block a user