Skip to content

Commit d3993c7

Browse files
committed
fix(nuxt): handle this can be undefined
close #968
1 parent e064a87 commit d3993c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/floating-vue/nuxt.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default async function (_, _nuxt) {
22
const { addPluginTemplate } = await import('@nuxt/kit')
33

4-
const nuxt = this.nuxt || _nuxt
4+
const nuxt = (this && this.nuxt) || _nuxt
55

66
nuxt.options.css.push('floating-vue/dist/style.css')
77

0 commit comments

Comments
 (0)