Skip to content

Commit e0b99f6

Browse files
authored
chore: add Inertia.js detection for vue 3 (#40)
1 parent 5684e86 commit e0b99f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

detectors/plugins.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@
9797
"url": "https://inertiajs.com/"
9898
},
9999
"detectors": {
100-
"js": "Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__?.$inertia)))"
100+
"js": [
101+
"Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__?.$inertia)))",
102+
"[...document.querySelectorAll('*')].map((el) => el.__vue_app__?.config?.globalProperties?.$inertia).filter(Boolean).length"
103+
]
101104
}
102105
},
103106
"vee-validate": {

0 commit comments

Comments
 (0)