1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-13 01:20:59 +00:00
This commit is contained in:
Szymon Lesisz 2018-05-18 19:46:35 +02:00
parent 12a81766a9
commit 56bf3a5bc4
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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) {