mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-25 16:38:08 +00:00
sync discovery with LocalStorage
This commit is contained in:
parent
e1f2d07187
commit
2025198d85
@ -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)
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user