mirror of https://github.com/vector-im/riot-web
Make GroupStoreCache global for cross-package access
parent
65ce71e6af
commit
3ae31dd426
|
@ -33,8 +33,7 @@ class GroupStoreCache {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let singletonGroupStoreCache = null;
|
if (global.singletonGroupStoreCache === undefined) {
|
||||||
if (!singletonGroupStoreCache) {
|
global.singletonGroupStoreCache = new GroupStoreCache();
|
||||||
singletonGroupStoreCache = new GroupStoreCache();
|
|
||||||
}
|
}
|
||||||
module.exports = singletonGroupStoreCache;
|
export default global.singletonGroupStoreCache;
|
||||||
|
|
Loading…
Reference in New Issue