mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 01:08:27 +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') {
|
if (event.key === 'discovery') {
|
||||||
// TODO: check if changed discovery is not running locally
|
dispatch({
|
||||||
// dispatch({
|
type: DISCOVERY.FROM_STORAGE,
|
||||||
// type: DISCOVERY.FROM_STORAGE,
|
payload: JSON.parse(event.newValue)
|
||||||
// payload: JSON.parse(event.newValue)
|
});
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user