Skip to content

Commit b9d94da

Browse files
committed
feat: rename inertia plugin and improve nuxt detection
1 parent 4a6d9eb commit b9d94da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

detectors/frameworks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"<div [^>]*id=\"__nuxt\"",
1212
"<script [^>]*>window\\.__NUXT__"
1313
],
14-
"js": "window.__NUXT__ || window.$nuxt",
14+
"js": "window.__NUXT__ || window.$nuxt || Boolean([...document.querySelectorAll('*')].find((el) => Boolean(el.__vue__ && el.__vue__.nuxt)))",
1515
"script": [
1616
"/_nuxt/"
1717
]

detectors/plugins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@inertiajs/inertia-vue": {
8989
"metas": {
9090
"slug": "inertia-vue",
91-
"name": "Inertia.js",
91+
"name": "@inertiajs/inertia-vue",
9292
"imgPath": "/plugins/inertiajs.svg",
9393
"url": "https://inertiajs.com/"
9494
},

0 commit comments

Comments
 (0)