Skip to content

Commit 9dd054f

Browse files
committed
chore: fix broken test
1 parent 317982d commit 9dd054f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/runtime/composables/useScript.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ export function useScript<T extends Record<symbol | string, any> = Record<symbol
6464
nuxtApp.$scripts[id] = undefined
6565
return _remove()
6666
}
67+
const _load = instance.load
6768
instance.load = async () => {
6869
if (err) {
6970
return Promise.reject(err)
7071
}
71-
return instance.load()
72+
return _load()
7273
}
7374
nuxtApp.$scripts[id] = instance
7475
// used for devtools integration

0 commit comments

Comments
 (0)