2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-06 18:42:25 +03:00

flip server check bool

This commit is contained in:
Blake Kostner
2017-11-30 15:15:14 -07:00
committed by GitHub
parent f6baceb864
commit 4c3e2e3d98
+1 -1
View File
@@ -55,7 +55,7 @@ export default function VueMeta (Vue, options = {}) {
// if computed $metaInfo exists, watch it for updates & trigger a refresh
// when it changes (i.e. automatically handle async actions that affect metaInfo)
// credit for this suggestion goes to [Sébastien Chopin](https://github.com/Atinux)
if (this.$isServer && this.$metaInfo) {
if (!this.$isServer && this.$metaInfo) {
this.$watch('$metaInfo', () => {
// batch potential DOM updates to prevent extraneous re-rendering
batchID = batchUpdate(batchID, () => this.$meta().refresh())