Implement MIDI permission detection and user prompting

This commit is contained in:
daylily
2026-01-12 18:23:13 -06:00
parent 2af6e1726b
commit 63134df7d6
8 changed files with 216 additions and 64 deletions
+1 -8
View File
@@ -4,19 +4,12 @@ import { Toaster } from 'svelte-sonner'
import Footer from '$lib/layouts/Footer.svelte'
import Main from '$lib/layouts/Main.svelte'
import Unsupported from '$lib/layouts/Unsupported.svelte'
const unsupported = navigator.requestMIDIAccess === undefined
</script>
<ModeWatcher />
<Toaster position="bottom-center" duration={2000} theme={mode.current} invert />
<div class="max-w-7xl min-h-dvh m-auto p-6 stack gap-4">
{#if unsupported}
<Unsupported />
{:else}
<Main />
{/if}
<Main />
<Footer />
</div>