From d8247d78fc4cc73632fe7a72c973f454bcaa2f57 Mon Sep 17 00:00:00 2001 From: Colin Lienard Date: Sun, 8 Oct 2023 18:24:35 +0200 Subject: [PATCH] fix: tauri command in web --- src/lib/components/settings/Settings.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/settings/Settings.svelte b/src/lib/components/settings/Settings.svelte index a52a4d21..0deb0d09 100644 --- a/src/lib/components/settings/Settings.svelte +++ b/src/lib/components/settings/Settings.svelte @@ -99,7 +99,9 @@ } mounted = true; - invoke('toggle_tray', { show: $settings.activeTray }); + if (window.__TAURI__) { + invoke('toggle_tray', { show: $settings.activeTray }); + } window.addEventListener('keydown', handleKeyDown); });