mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 03:34:34 -05:00
18 lines
352 B
Svelte
18 lines
352 B
Svelte
<script>
|
|
import { onMount } from "svelte";
|
|
import { isTauri } from "@tauri-apps/api/core";
|
|
|
|
let { children } = $props();
|
|
let isNative = $state(false);
|
|
let mounted = $state(false);
|
|
|
|
onMount(() => {
|
|
isNative = isTauri();
|
|
mounted = true;
|
|
});
|
|
</script>
|
|
|
|
{#if mounted && !isNative}
|
|
{@render children()}
|
|
{/if}
|