mirror of https://github.com/vector-im/riot-web
Use same singleton impl as MatrixClientPeg for SessionStore
parent
5c8187dc8f
commit
6ffe7ef9b2
|
@ -55,9 +55,7 @@ SessionStore.prototype.getCachedPassword = function() {
|
|||
|
||||
// Export singleton getter
|
||||
let singletonSessionStore = null;
|
||||
export default function getSessionStore() {
|
||||
if (!singletonSessionStore) {
|
||||
singletonSessionStore = new SessionStore();
|
||||
}
|
||||
return singletonSessionStore;
|
||||
if (!singletonSessionStore) {
|
||||
singletonSessionStore = new SessionStore();
|
||||
}
|
||||
module.exports = singletonSessionStore;
|
||||
|
|
Loading…
Reference in New Issue