From 1fa4b5c776e0fddcb1fe2e9b2c2ad42f764b0bd1 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Tue, 2 Nov 2021 04:54:24 -0230 Subject: [PATCH] Don't show ledger live option in advanced settings if using firefox (#12494) * Don't show ledger live option in advanced settings if using firefox * Hide ledger transport selector in advanced settings on firefox --- ui/pages/settings/advanced-tab/advanced-tab.component.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/pages/settings/advanced-tab/advanced-tab.component.js b/ui/pages/settings/advanced-tab/advanced-tab.component.js index 41027859e..001b51d8b 100644 --- a/ui/pages/settings/advanced-tab/advanced-tab.component.js +++ b/ui/pages/settings/advanced-tab/advanced-tab.component.js @@ -9,6 +9,10 @@ import { MOBILE_SYNC_ROUTE } from '../../../helpers/constants/routes'; import Dropdown from '../../../components/ui/dropdown'; import Dialog from '../../../components/ui/dialog'; +import { getPlatform } from '../../../../app/scripts/lib/util'; + +import { PLATFORM_FIREFOX } from '../../../../shared/constants/app'; + import { LEDGER_TRANSPORT_TYPES, LEDGER_USB_VENDOR_ID, @@ -634,6 +638,8 @@ export default class AdvancedTab extends PureComponent { render() { const { warning } = this.props; + const notUsingFirefox = getPlatform() !== PLATFORM_FIREFOX; + return (
{warning ?
{warning}
: null} @@ -648,7 +654,7 @@ export default class AdvancedTab extends PureComponent { {this.renderAutoLockTimeLimit()} {this.renderThreeBoxControl()} {this.renderIpfsGatewayControl()} - {this.renderLedgerLiveControl()} + {notUsingFirefox ? this.renderLedgerLiveControl() : null} {this.renderDismissSeedBackupReminderControl()}
);