Skip to content

Commit 5c9c94c

Browse files
committed
fix: use $img not $router for nuxt/image
Resolves #83
1 parent 15adce5 commit 5c9c94c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detectors/nuxt.modules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384
"js": [
385385
"window.$nuxt?.$img",
386386
"window.__NUXT__?.config?.public?.image",
387-
"[...document.querySelectorAll('*')].map((el) => el.__vue_app__?.config?.globalProperties?.$router).filter(Boolean).length"
387+
"[...document.querySelectorAll('*')].map((el) => el.__vue_app__?.config?.globalProperties?.$img).filter(Boolean).length"
388388
]
389389
}
390390
},

0 commit comments

Comments
 (0)