mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Merge pull request #6659 from matkam/develop
Enable Ledger hardware wallet support on Firefox
This commit is contained in:
commit
681f3f67b8
@ -8,8 +8,6 @@ const ConnectScreen = require('./connect-screen')
|
||||
const AccountList = require('./account-list')
|
||||
const { DEFAULT_ROUTE } = require('../../../helpers/constants/routes')
|
||||
const { formatBalance } = require('../../../helpers/utils/util')
|
||||
const { getPlatform } = require('../../../../../app/scripts/lib/util')
|
||||
const { PLATFORM_FIREFOX } = require('../../../../../app/scripts/lib/enums')
|
||||
|
||||
class ConnectHardwareForm extends Component {
|
||||
constructor (props) {
|
||||
@ -51,12 +49,6 @@ class ConnectHardwareForm extends Component {
|
||||
}
|
||||
|
||||
connectToHardwareWallet = (device) => {
|
||||
// Ledger hardware wallets are not supported on firefox
|
||||
if (getPlatform() === PLATFORM_FIREFOX && device === 'ledger') {
|
||||
this.setState({ browserSupported: false, error: null})
|
||||
return null
|
||||
}
|
||||
|
||||
if (this.state.accounts.length) {
|
||||
return null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user