From 17df4d3cc58a3a7484a0a7e0f82c80ab4306ef12 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 26 Jul 2024 12:29:04 +0100 Subject: [PATCH] remove the use of userAgentData for firefox's sake --- libs/remix-ui/workspace/src/lib/components/file-explorer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx index f3ea62f1ed..dc6814d275 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx @@ -256,7 +256,7 @@ export const FileExplorer = (props: FileExplorerProps) => { let pcCutHandler: (eve: KeyboardEvent) => Promise let pcPasteHandler: (eve: KeyboardEvent) => Promise - if ((window as any).navigator.userAgentData.platform === 'macOS') { + if ((window as any).navigator.platform === 'MacIntel') { CopyComboHandler = async (eve: KeyboardEvent) => { if (eve.metaKey && eve.code === 'KeyC') { feWindow._paq.push(['trackEvent', 'fileExplorer', 'f2ToRename', 'RenamePath'])