diff --git a/pagefind_ui/default/svelte/ui.svelte b/pagefind_ui/default/svelte/ui.svelte index 4be04d55..a40b5867 100644 --- a/pagefind_ui/default/svelte/ui.svelte +++ b/pagefind_ui/default/svelte/ui.svelte @@ -99,11 +99,21 @@ [ `Pagefind couldn't be loaded from ${this.options.bundlePath}pagefind.js`, `You can configure this by passing a bundlePath option to PagefindUI`, - `[DEBUG: Loaded from ${ - document?.currentScript?.src ?? "no known script location" - }]`, ].join("\n") ); + // Important: Check that the element is indeed a