Skip to content

Commit

Permalink
chore: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Mar 27, 2024
1 parent 8dda520 commit a8604dc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ addConfetti({ emojis: ['🌈', '⚡️', '💥', '✨', '💫', '🌸'] })

### Using The Registry (TODO)

The registry is a collection of compatible Nuxt Modules that integrate with Nuxt Scripts and one-off composables provided
The registry is a collection of compatible Nuxt Modules that integrate with Nuxt Scripts and one-off composables provided
by the module.

To use a script from the registry, simply use the composable or register them globally using the key. Consult the
Expand Down
1 change: 0 additions & 1 deletion playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ async function submit() {
})
script.value = instance.$script
instance.$script.then((script) => {
console.log('got script', script)
scriptFns.value = Object.keys(script)
})
}
Expand Down
1 change: 1 addition & 0 deletions src/runtime/composables/useScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export function useScript<T>(input: UseScriptInput, options?: Omit<UseScriptOpti
input = typeof input === 'string' ? { src: input } : input
options = options || {}
if (options.trigger === 'onNuxtReady')
// @ts-expect-error untyped
options.trigger = onNuxtReady
const nuxtApp = useNuxtApp()
const instance = _useScript<T>(input, options as any as UseScriptOptions<T>)
Expand Down

0 comments on commit a8604dc

Please sign in to comment.