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:
parent
a2d3d942ec
commit
1fa4b5c776
@ -9,6 +9,10 @@ import { MOBILE_SYNC_ROUTE } from '../../../helpers/constants/routes';
|
|||||||
import Dropdown from '../../../components/ui/dropdown';
|
import Dropdown from '../../../components/ui/dropdown';
|
||||||
import Dialog from '../../../components/ui/dialog';
|
import Dialog from '../../../components/ui/dialog';
|
||||||
|
|
||||||
|
import { getPlatform } from '../../../../app/scripts/lib/util';
|
||||||
|
|
||||||
|
import { PLATFORM_FIREFOX } from '../../../../shared/constants/app';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
LEDGER_TRANSPORT_TYPES,
|
LEDGER_TRANSPORT_TYPES,
|
||||||
LEDGER_USB_VENDOR_ID,
|
LEDGER_USB_VENDOR_ID,
|
||||||
@ -634,6 +638,8 @@ export default class AdvancedTab extends PureComponent {
|
|||||||
render() {
|
render() {
|
||||||
const { warning } = this.props;
|
const { warning } = this.props;
|
||||||
|
|
||||||
|
const notUsingFirefox = getPlatform() !== PLATFORM_FIREFOX;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="settings-page__body">
|
<div className="settings-page__body">
|
||||||
{warning ? <div className="settings-tab__error">{warning}</div> : null}
|
{warning ? <div className="settings-tab__error">{warning}</div> : null}
|
||||||
@ -648,7 +654,7 @@ export default class AdvancedTab extends PureComponent {
|
|||||||
{this.renderAutoLockTimeLimit()}
|
{this.renderAutoLockTimeLimit()}
|
||||||
{this.renderThreeBoxControl()}
|
{this.renderThreeBoxControl()}
|
||||||
{this.renderIpfsGatewayControl()}
|
{this.renderIpfsGatewayControl()}
|
||||||
{this.renderLedgerLiveControl()}
|
{notUsingFirefox ? this.renderLedgerLiveControl() : null}
|
||||||
{this.renderDismissSeedBackupReminderControl()}
|
{this.renderDismissSeedBackupReminderControl()}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user