From 932c20f62d60fba8df6201997412444e7f54a9f7 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Thu, 19 Dec 2024 10:50:10 +0100 Subject: [PATCH] fix it --- packages/svelte/src/sdk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/src/sdk.ts b/packages/svelte/src/sdk.ts index 259c61e93d9f..52f8ef4c517b 100644 --- a/packages/svelte/src/sdk.ts +++ b/packages/svelte/src/sdk.ts @@ -56,5 +56,5 @@ export function detectAndReportSvelteKit(): void { * @see https://github.com/sveltejs/kit/issues/307 for more information */ export function isSvelteKitApp(): boolean { - return WINDOW.document.querySelector('div#svelte-announcer') !== null; + return !!WINDOW.document.querySelector('div#svelte-announcer'); }