Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Dec 19, 2024
1 parent 785a25a commit 932c20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

0 comments on commit 932c20f

Please sign in to comment.