2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-21 14:10:33 +03:00

fix: $meta can be called server side before app is initiated

This commit is contained in:
pimlie
2019-06-11 16:15:29 +02:00
parent 02237e0176
commit ecd725dd58
2 changed files with 0 additions and 31 deletions
-11
View File
@@ -1,4 +1,3 @@
import { showWarningNotSupported } from '../shared/constants'
import { getOptions } from '../shared/options'
import { pause, resume } from '../shared/pausing'
import refresh from '../client/refresh'
@@ -14,16 +13,6 @@ export default function _$meta(options = {}) {
* @return {Object} - injector
*/
return function $meta() {
if (!this.$root._vueMeta) {
return {
getOptions: showWarningNotSupported,
refresh: showWarningNotSupported,
inject: showWarningNotSupported,
pause: showWarningNotSupported,
resume: showWarningNotSupported
}
}
return {
getOptions: () => getOptions(options),
refresh: _refresh.bind(this),