mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-11 23:52:47 +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
|
// handle outdated firmware error
|
||||||
if (error.message === UI.FIRMWARE) {
|
if (error.message === UI.FIRMWARE_OLD) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: DISCOVERY.FIRMWARE_OUTDATED,
|
type: DISCOVERY.FIRMWARE_OUTDATED,
|
||||||
device,
|
device,
|
||||||
|
@ -94,6 +94,9 @@ export const showAddress = (path: Array<number>): AsyncAction => async (dispatch
|
|||||||
type: RECEIVE.HIDE_ADDRESS,
|
type: RECEIVE.HIDE_ADDRESS,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// special case: device no-backup permissions not granted
|
||||||
|
if (response.payload.code === 403) return;
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: NOTIFICATION.ADD,
|
type: NOTIFICATION.ADD,
|
||||||
payload: {
|
payload: {
|
||||||
|
@ -120,7 +120,7 @@ export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetS
|
|||||||
|
|
||||||
if (buildUtils.isDev()) {
|
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://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;
|
window.TrezorConnect = TrezorConnect;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,6 +131,10 @@ export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetS
|
|||||||
popup: false,
|
popup: false,
|
||||||
webusb: true,
|
webusb: true,
|
||||||
pendingTransportEvent: (getState().devices.length < 1),
|
pendingTransportEvent: (getState().devices.length < 1),
|
||||||
|
manifest: {
|
||||||
|
email: 'info@trezor.io',
|
||||||
|
appUrl: 'http://beta-wallet.trezor.io/next/',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
dispatch({
|
dispatch({
|
||||||
|
@ -38,6 +38,7 @@ import type {
|
|||||||
Device,
|
Device,
|
||||||
Features,
|
Features,
|
||||||
DeviceStatus,
|
DeviceStatus,
|
||||||
|
FirmwareRelease,
|
||||||
DeviceFirmwareStatus,
|
DeviceFirmwareStatus,
|
||||||
DeviceMode,
|
DeviceMode,
|
||||||
DeviceMessageType,
|
DeviceMessageType,
|
||||||
@ -55,6 +56,7 @@ export type AcquiredDevice = $Exact<{
|
|||||||
+label: string,
|
+label: string,
|
||||||
+features: Features,
|
+features: Features,
|
||||||
+firmware: DeviceFirmwareStatus,
|
+firmware: DeviceFirmwareStatus,
|
||||||
|
+firmwareRelease: ?FirmwareRelease,
|
||||||
status: DeviceStatus,
|
status: DeviceStatus,
|
||||||
+mode: DeviceMode,
|
+mode: DeviceMode,
|
||||||
state: ?string,
|
state: ?string,
|
||||||
|
Loading…
Reference in New Issue
Block a user