mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
Export a global.singletonFlairStore to allow cross-project singleton
This commit is contained in:
parent
71443e9b94
commit
25d14af616
1 changed files with 3 additions and 4 deletions
|
@ -147,8 +147,7 @@ class FlairStore extends EventEmitter {
|
|||
}
|
||||
}
|
||||
|
||||
let singletonFlairStore = null;
|
||||
if (!singletonFlairStore) {
|
||||
singletonFlairStore = new FlairStore();
|
||||
if (global.singletonFlairStore === undefined) {
|
||||
global.singletonFlairStore = new FlairStore();
|
||||
}
|
||||
module.exports = singletonFlairStore;
|
||||
export default global.singletonFlairStore;
|
||||
|
|
Loading…
Reference in a new issue