mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-13 01:20:59 +00:00
comments
This commit is contained in:
parent
12a81766a9
commit
56bf3a5bc4
@ -17,10 +17,9 @@ window.onbeforeunload = () => {
|
|||||||
store.dispatch( onBeforeUnload() );
|
store.dispatch( onBeforeUnload() );
|
||||||
}
|
}
|
||||||
|
|
||||||
// workaround for web3
|
if (typeof module !== undefined && module.hasOwnProperty('hot')) {
|
||||||
// yarn add web3@^0.19.0
|
|
||||||
//if (module && module.hot)
|
|
||||||
if (typeof module !== undefined && module.hasOwnProperty('hot')) {
|
|
||||||
// $FlowIssue
|
// $FlowIssue
|
||||||
module.hot.accept();
|
module.hot.accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Application life cycle starts in ./services/LocalStorageService.js
|
@ -88,6 +88,7 @@ const save = (dispatch: Dispatch, getState: GetState): void => {
|
|||||||
|
|
||||||
const LocalStorageService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => {
|
const LocalStorageService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => {
|
||||||
|
|
||||||
|
// Application live cycle starts here
|
||||||
if (action.type === LOCATION_CHANGE) {
|
if (action.type === LOCATION_CHANGE) {
|
||||||
const { location } = api.getState().router;
|
const { location } = api.getState().router;
|
||||||
if (!location) {
|
if (!location) {
|
||||||
|
Loading…
Reference in New Issue
Block a user