2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-12 19:02:27 +03:00
Files
vue-meta/src/shared/pausing.js
T
pimlie 0ab76ee16b feat: add possibility to add additional meta info
refactor: server injectors

feat: add head, bodyPrepend, bodyAppend injectors

refactor: create browserbuild through rollup replace (not separate entry)
2019-09-17 13:55:29 +02:00

14 lines
257 B
JavaScript

export function pause (vm, refresh = true) {
vm.$root._vueMeta.paused = true
return () => resume(refresh)
}
export function resume (vm, refresh = true) {
vm.$root._vueMeta.paused = false
if (refresh) {
return vm.$root.$meta().refresh()
}
}