1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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
This commit is contained in:
Dan J Miller 2021-11-02 04:54:24 -02:30 committed by GitHub
parent a2d3d942ec
commit 1fa4b5c776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (
<div className="settings-page__body">
{warning ? <div className="settings-tab__error">{warning}</div> : 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()}
</div>
);