fix: dev tools detection of custom global name (#4305)

This commit is contained in:
Jonas Galvez 2018-11-11 09:22:50 -02:00 committed by Pooya Parsa
parent d280bd8d5b
commit 3b7958b99a

View File

@ -60,7 +60,7 @@ export default {
if (typeof window !== 'undefined') {
window.<%= globals.nuxt %> = this
<% if (globals.nuxt !== '$nuxt') { %>
window.$nuxt = true
window.$nuxt = { $root: { constructor: this.$root.constructor } }
<% } %>
}
// Add $nuxt.error()