mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-13 20:08:56 +00:00
connect7 changes
This commit is contained in:
parent
a5ac8ce944
commit
149b07cb2e
@ -205,7 +205,7 @@ const discoverAccount = (device: TrezorDevice, discoveryProcess: Discovery): Asy
|
||||
}
|
||||
|
||||
// handle outdated firmware error
|
||||
if (error.message === UI.FIRMWARE) {
|
||||
if (error.message === UI.FIRMWARE_OLD) {
|
||||
dispatch({
|
||||
type: DISCOVERY.FIRMWARE_OUTDATED,
|
||||
device,
|
||||
|
@ -94,6 +94,9 @@ export const showAddress = (path: Array<number>): AsyncAction => async (dispatch
|
||||
type: RECEIVE.HIDE_ADDRESS,
|
||||
});
|
||||
|
||||
// special case: device no-backup permissions not granted
|
||||
if (response.payload.code === 403) return;
|
||||
|
||||
dispatch({
|
||||
type: NOTIFICATION.ADD,
|
||||
payload: {
|
||||
|
@ -120,7 +120,7 @@ export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetS
|
||||
|
||||
if (buildUtils.isDev()) {
|
||||
window.__TREZOR_CONNECT_SRC = typeof LOCAL === 'string' ? LOCAL : 'https://sisyfos.trezor.io/connect/'; // eslint-disable-line no-underscore-dangle
|
||||
// window.__TREZOR_CONNECT_SRC = typeof LOCAL === 'string' ? LOCAL : 'https://connect.trezor.io/5/'; // eslint-disable-line no-underscore-dangle
|
||||
// window.__TREZOR_CONNECT_SRC = typeof LOCAL === 'string' ? LOCAL : 'https://localhost:8088/'; // eslint-disable-line no-underscore-dangle
|
||||
window.TrezorConnect = TrezorConnect;
|
||||
}
|
||||
|
||||
@ -131,6 +131,10 @@ export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetS
|
||||
popup: false,
|
||||
webusb: true,
|
||||
pendingTransportEvent: (getState().devices.length < 1),
|
||||
manifest: {
|
||||
email: 'info@trezor.io',
|
||||
appUrl: 'http://beta-wallet.trezor.io/next/',
|
||||
},
|
||||
});
|
||||
} catch (error) {
|
||||
dispatch({
|
||||
|
@ -38,6 +38,7 @@ import type {
|
||||
Device,
|
||||
Features,
|
||||
DeviceStatus,
|
||||
FirmwareRelease,
|
||||
DeviceFirmwareStatus,
|
||||
DeviceMode,
|
||||
DeviceMessageType,
|
||||
@ -55,6 +56,7 @@ export type AcquiredDevice = $Exact<{
|
||||
+label: string,
|
||||
+features: Features,
|
||||
+firmware: DeviceFirmwareStatus,
|
||||
+firmwareRelease: ?FirmwareRelease,
|
||||
status: DeviceStatus,
|
||||
+mode: DeviceMode,
|
||||
state: ?string,
|
||||
|
Loading…
Reference in New Issue
Block a user