mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix: dev tools detection of custom global name (#4305)
This commit is contained in:
parent
d280bd8d5b
commit
3b7958b99a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user