mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-01 11:50:54 +00:00
parent
1aed318741
commit
51e65ef31f
@ -256,8 +256,7 @@ export const isLandingPageUrl = ($url?: string): PayloadAction<boolean> => (disp
|
|||||||
if (typeof url !== 'string') {
|
if (typeof url !== 'string') {
|
||||||
url = getState().router.location.pathname;
|
url = getState().router.location.pathname;
|
||||||
}
|
}
|
||||||
// TODO: add more landing page cases/urls to config.json (like /tools etc)
|
return url === '/';
|
||||||
return (url === '/' || url === '/bridge');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -52,9 +52,6 @@ const WalletService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa
|
|||||||
if (action.device) {
|
if (action.device) {
|
||||||
// try to authorize device
|
// try to authorize device
|
||||||
api.dispatch(TrezorConnectActions.getSelectedDeviceState());
|
api.dispatch(TrezorConnectActions.getSelectedDeviceState());
|
||||||
} else {
|
|
||||||
// try select different device
|
|
||||||
api.dispatch(RouterActions.selectFirstAvailableDevice());
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DEVICE.CONNECT:
|
case DEVICE.CONNECT:
|
||||||
|
Loading…
Reference in New Issue
Block a user