This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
// find root element: nuxt instance, #app, first div child in <body> | |
const root = window?.$nuxt?.$el || document.getElementById('app') || [...document.body.children].find(i => i.tagName === 'DIV'); | |
const app = root?.__vue__; | |
if (!app || !window.__VUE_DEVTOOLS_GLOBAL_HOOK__) return 0; | |
const Vue = app.constructor; | |
const VueSuper = Vue.super || Vue; | |
VueSuper.config.devtools = true; |