Skip to content

Commit

Permalink
Revert "guard userAgentData access (#2960)"
Browse files Browse the repository at this point in the history
This reverts commit 132e3b3.
  • Loading branch information
fonsp committed Jul 17, 2024
1 parent 5585682 commit 85003ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/common/KeyboardShortcuts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
export let is_mac_keyboard = /Mac/i.test(navigator.userAgentData?.platform ?? navigator.platform)
export let is_mac_keyboard = /Mac/i.test(navigator.userAgentData.platform ?? navigator.platform)

export let control_name = is_mac_keyboard ? "⌃" : "Ctrl"
export let ctrl_or_cmd_name = is_mac_keyboard ? "⌘" : "Ctrl"
Expand Down

0 comments on commit 85003ef

Please sign in to comment.