mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-15 21:08:57 +00:00
Remove 'connectSrc' from TrezorConnect.init() settings
- connect to a public connect server
This commit is contained in:
parent
0802d7d654
commit
e7c8336d77
@ -172,6 +172,22 @@ export const postInit = (): ThunkAction => (dispatch: Dispatch, getState: GetSta
|
||||
// dispatch( push(initialPathname) );
|
||||
} else {
|
||||
|
||||
if (devices.length > 0) {
|
||||
const unacquired: ?TrezorDevice = devices.find(d => d.unacquired);
|
||||
if (unacquired) {
|
||||
dispatch( onSelectDevice(unacquired) );
|
||||
} else {
|
||||
const latest: Array<TrezorDevice> = sortDevices(devices);
|
||||
const firstConnected: ?TrezorDevice = latest.find(d => d.connected);
|
||||
dispatch( onSelectDevice(firstConnected || latest[0]) );
|
||||
|
||||
// TODO
|
||||
if (initialParams) {
|
||||
if (!initialParams.hasOwnProperty("network") && initialPathname !== getState().router.location.pathname) {
|
||||
// dispatch( push(initialPathname) );
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user