remove the use of userAgentData for firefox's sake

pull/5062/head
Joseph Izang 4 months ago committed by Aniket
parent 46d584adaa
commit 17df4d3cc5
  1. 2
      libs/remix-ui/workspace/src/lib/components/file-explorer.tsx

@ -256,7 +256,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
let pcCutHandler: (eve: KeyboardEvent) => Promise<void>
let pcPasteHandler: (eve: KeyboardEvent) => Promise<void>
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'])

Loading…
Cancel
Save