Skip to content

Commit 97d472a

Browse files
feat(detectors): add Vue 3 detector for chakra-ui/vue (#51)
1 parent ee6e9b5 commit 97d472a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

detectors/uis.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@
101101
"url": "https://vue.chakra-ui.com"
102102
},
103103
"detectors": {
104-
"js": "[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__?.$chakra)).filter(Boolean).length"
104+
"js": [
105+
"[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__?.$chakra)).filter(Boolean).length",
106+
"[...document.querySelectorAll('*')].map((el) => el.__vue_app__?.config?.globalProperties?.$chakraTheme).filter(Boolean).length"
107+
]
105108
}
106109
},
107110
"primevue": {

0 commit comments

Comments
 (0)