mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +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') {
|
if (typeof window !== 'undefined') {
|
||||||
window.<%= globals.nuxt %> = this
|
window.<%= globals.nuxt %> = this
|
||||||
<% if (globals.nuxt !== '$nuxt') { %>
|
<% if (globals.nuxt !== '$nuxt') { %>
|
||||||
window.$nuxt = true
|
window.$nuxt = { $root: { constructor: this.$root.constructor } }
|
||||||
<% } %>
|
<% } %>
|
||||||
}
|
}
|
||||||
// Add $nuxt.error()
|
// Add $nuxt.error()
|
||||||
|
Loading…
Reference in New Issue
Block a user