diff --git a/frontend/common/KeyboardShortcuts.js b/frontend/common/KeyboardShortcuts.js index 0f6feaf62d..e099161923 100644 --- a/frontend/common/KeyboardShortcuts.js +++ b/frontend/common/KeyboardShortcuts.js @@ -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"