Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cbodfield authored May 6, 2024
1 parent be96251 commit d7504ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const matchApplePlatform = /Mac|iPod|iPhone|iPad/i

function localizeMod(hotkey: string, platform?: string | undefined): string {
const ssrSafeWindow = typeof window === 'undefined' ? undefined : window
const safePlatform = platform ?? ssrSafeWindow?.navigator.platform ?? ""
const safePlatform = platform ?? ssrSafeWindow?.navigator.platform ?? ''

const localModifier = matchApplePlatform.test(safePlatform) ? 'Meta' : 'Control'
return hotkey.replace('Mod', localModifier)
Expand Down

0 comments on commit d7504ac

Please sign in to comment.