fix: disable download dev options for non-tauri envs
This commit is contained in:
@ -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?");
|
||||||
|
|||||||
Reference in New Issue
Block a user