mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 03:34:34 -05:00
Update Git Ignore
This commit is contained in:
17
frontend/src/lib/components/OnlyWeb.svelte
Normal file
17
frontend/src/lib/components/OnlyWeb.svelte
Normal file
@@ -0,0 +1,17 @@
|
||||
<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}
|
||||
Reference in New Issue
Block a user