1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

sync discovery with LocalStorage

This commit is contained in:
Szymon Lesisz 2018-05-25 11:20:12 +02:00
parent e1f2d07187
commit 2025198d85

View File

@ -202,11 +202,10 @@ export function update(event: StorageEvent): AsyncAction {
}
if (event.key === 'discovery') {
// TODO: check if changed discovery is not running locally
// dispatch({
// type: DISCOVERY.FROM_STORAGE,
// payload: JSON.parse(event.newValue)
// });
dispatch({
type: DISCOVERY.FROM_STORAGE,
payload: JSON.parse(event.newValue)
});
}
}
}