mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
11 lines
284 B
JavaScript
11 lines
284 B
JavaScript
|
import LocalStore from './local-store';
|
||
|
import ReadOnlyNetworkStore from './network-store';
|
||
|
|
||
|
const localStore = process.env.IN_TEST
|
||
|
? new ReadOnlyNetworkStore()
|
||
|
: new LocalStore();
|
||
|
|
||
|
globalThis.stateHooks.getPersistedState = async function () {
|
||
|
return await localStore.get();
|
||
|
};
|