Skip to content

Commit 8c79109

Browse files
authored
feat: add vuepress2 detection (#101)
1 parent ade8c00 commit 8c79109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detectors/frameworks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"url": "https://vuepress.vuejs.org"
2929
},
3030
"detectors": {
31-
"js": "[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__?.$vuepress)).filter(Boolean).length"
31+
"js": "[...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__?.$vuepress || el.__vue_app__?._component?.name === 'VuepressApp')).filter(Boolean).length"
3232
}
3333
},
3434
"vitepress": {

0 commit comments

Comments
 (0)