From 85003ef82e1b607594eb9effb0ba0334dcf1a74e Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Thu, 18 Jul 2024 00:01:38 +0200 Subject: [PATCH] Revert "guard userAgentData access (#2960)" This reverts commit 132e3b34ec49520095aade369e76aa3f6b44ae9d. --- frontend/common/KeyboardShortcuts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/common/KeyboardShortcuts.js b/frontend/common/KeyboardShortcuts.js index e099161923..0f6feaf62d 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"