diff --git a/src/components/search.svelte b/src/components/search.svelte index f3d3092..9418e7d 100644 --- a/src/components/search.svelte +++ b/src/components/search.svelte @@ -5,12 +5,14 @@ export let clearSearch: () => void; import X from 'phosphor-svelte/lib/X'; - let shortcutText = 'control'; + let shortcutText: string = ''; let inputElement; if (typeof window !== 'undefined') { if (navigator.platform.toUpperCase().indexOf('MAC') !== -1) { shortcutText = 'command'; + } else { + shortcutText = 'control'; } } @@ -64,10 +66,11 @@