We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 877f765 commit f1511acCopy full SHA for f1511ac
src/shared/mixin.js
@@ -79,7 +79,7 @@ export default function createMixin(Vue, options) {
79
ensuredPush(this.$options, 'beforeMount', () => {
80
// if this Vue-app was server rendered, set the appId to 'ssr'
81
// only one SSR app per page is supported
82
- if (this.$root.$el && this.$root.$el.hasAttribute('data-server-rendered')) {
+ if (this.$root.$el && this.$root.$el.hasAttribute && this.$root.$el.hasAttribute('data-server-rendered')) {
83
this.$root._vueMeta.appId = 'ssr'
84
}
85
})
0 commit comments