From 441636673c17d7d9547de1ab4ed3b90622a3c7cf Mon Sep 17 00:00:00 2001 From: harlan Date: Mon, 14 Oct 2024 15:42:40 +1100 Subject: [PATCH] fix(useScript): avoid registering promises server-side --- packages/unhead/src/composables/useScript.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/unhead/src/composables/useScript.ts b/packages/unhead/src/composables/useScript.ts index 8ae313e2..cf1607cd 100644 --- a/packages/unhead/src/composables/useScript.ts +++ b/packages/unhead/src/composables/useScript.ts @@ -151,6 +151,10 @@ export function useScript = Record typeof v === 'undefined' || v ? script.load : undefined),