fix: disable download dev options for non-tauri envs
Some checks failed
TrafficCue CI / check (push) Failing after 56s
TrafficCue CI / build (push) Successful in 47s

This commit is contained in:
Cfp
2025-08-11 18:52:47 +02:00
parent 3e5737b039
commit 9d5319aee2

View File

@ -20,7 +20,7 @@
<SettingsButton icon={SpeechIcon} text="Test TTS" onclick={async () => { <SettingsButton icon={SpeechIcon} text="Test TTS" onclick={async () => {
await say("Test") await say("Test")
}} /> }} />
<SettingsButton icon={MapIcon} text="Download tiles from URL" onclick={async () => { <SettingsButton icon={MapIcon} disabled={!window.__TAURI__} text="Download tiles from URL{window.__TAURI__ ? "" : " (Unavailable)"}" onclick={async () => {
const name = prompt("Name?"); const name = prompt("Name?");
if(!name) return; if(!name) return;
const url = prompt("URL?"); const url = prompt("URL?");