We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6490ce3 commit 0c5135cCopy full SHA for 0c5135c
src/runtime/composables/useScript.ts
@@ -34,7 +34,7 @@ export function useScript<T extends Record<symbol | string, any> = Record<symbol
34
nuxtApp.$scripts = nuxtApp.$scripts! || reactive({})
35
const exists = !!(nuxtApp.$scripts as Record<string, any>)?.[id]
36
// need to make sure it's not already registered
37
- if (!exists && input.src && ValidPreloadTriggers.includes(options.trigger) && (rel === 'preload' || isCrossOrigin)) {
+ if (!exists && input.src && ValidPreloadTriggers.includes(String(options.trigger)) && (rel === 'preload' || isCrossOrigin)) {
38
useHead({
39
link: [
40
{
0 commit comments