Skip to content

Commit

Permalink
fix: tauri command in web
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlienard committed Oct 8, 2023
1 parent 1a754f8 commit d8247d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/settings/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit d8247d7

Please sign in to comment.