1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00

udpate IFRAME.LOADED action

This commit is contained in:
Szymon Lesisz 2019-03-26 10:53:15 +01:00
parent fe744ca81f
commit 869c2ac302
2 changed files with 2 additions and 9 deletions

View File

@ -119,15 +119,8 @@ type UiEventAction = {
// },
};
// TODO: join this message with uiMessage
type IFrameHandshake = {
type: 'iframe_handshake',
payload: any,
};
export type Action =
| RouterAction
| IFrameHandshake
| TransportEventAction
| DeviceEventAction
| UiEventAction

View File

@ -1,5 +1,5 @@
/* @flow */
import { TRANSPORT, UI } from 'trezor-connect';
import { TRANSPORT, IFRAME } from 'trezor-connect';
import * as CONNECT from 'actions/constants/TrezorConnect';
import type { Action } from 'flowtype';
@ -66,7 +66,7 @@ export default function connect(state: State = initialState, action: Action): St
error: action.error,
};
// trezor-connect iframe loaded
case UI.IFRAME_HANDSHAKE:
case IFRAME.LOADED:
return {
...state,
initialized: true,