Skip to content

Commit 061d287

Browse files
committed
fix: add window
1 parent c517ebf commit 061d287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ async function analyze (originalUrl, options = {}) {
180180
getNuxtMeta(context),
181181
getNuxtModules(context)
182182
])
183-
infos.framework.version = await page.evaluate(`__unctx__?.get('nuxt-app')?.use()?.versions?.nuxt`)
183+
infos.framework.version = await page.evaluate(`window.__unctx__?.get('nuxt-app')?.use()?.versions?.nuxt`)
184184
if (!infos.framework.version && infos.vueVersion) {
185185
infos.framework.version = infos.vueVersion.split('.')[0]
186186
}

0 commit comments

Comments
 (0)