mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-30 12:18:09 +00:00
udpate IFRAME.LOADED action
This commit is contained in:
parent
fe744ca81f
commit
869c2ac302
@ -119,15 +119,8 @@ type UiEventAction = {
|
|||||||
// },
|
// },
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: join this message with uiMessage
|
|
||||||
type IFrameHandshake = {
|
|
||||||
type: 'iframe_handshake',
|
|
||||||
payload: any,
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Action =
|
export type Action =
|
||||||
| RouterAction
|
| RouterAction
|
||||||
| IFrameHandshake
|
|
||||||
| TransportEventAction
|
| TransportEventAction
|
||||||
| DeviceEventAction
|
| DeviceEventAction
|
||||||
| UiEventAction
|
| UiEventAction
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
import { TRANSPORT, UI } from 'trezor-connect';
|
import { TRANSPORT, IFRAME } from 'trezor-connect';
|
||||||
import * as CONNECT from 'actions/constants/TrezorConnect';
|
import * as CONNECT from 'actions/constants/TrezorConnect';
|
||||||
|
|
||||||
import type { Action } from 'flowtype';
|
import type { Action } from 'flowtype';
|
||||||
@ -66,7 +66,7 @@ export default function connect(state: State = initialState, action: Action): St
|
|||||||
error: action.error,
|
error: action.error,
|
||||||
};
|
};
|
||||||
// trezor-connect iframe loaded
|
// trezor-connect iframe loaded
|
||||||
case UI.IFRAME_HANDSHAKE:
|
case IFRAME.LOADED:
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
initialized: true,
|
initialized: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user