We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f8bf4 commit 21846fdCopy full SHA for 21846fd
1 file changed
frontend/src/lib/detection/IsRunningExternal.svelte
@@ -0,0 +1,13 @@
1
+<script lang="ts">
2
+ import { IS_RUNNING_EXTERNAL} from '$lib/detection/onwebsite';
3
+ import type { Snippet } from 'svelte';
4
+ let { children, not = false }: { children?: Snippet; not?: boolean } = $props();
5
+</script>
6
+
7
+{#if IS_RUNNING_EXTERNAL}
8
+ {#if !not}
9
+ {@render children?.()}
10
+ {/if}
11
+{:else if not}
12
13
+{/if}
0 commit comments