mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
only load olm once
This commit is contained in:
parent
0c3ea90ab4
commit
9fad5b3b29
@ -105,6 +105,7 @@ export async function main(container, paths) {
|
|||||||
const sessionInfoStorage = new SessionInfoStorage("brawl_sessions_v1");
|
const sessionInfoStorage = new SessionInfoStorage("brawl_sessions_v1");
|
||||||
const storageFactory = new StorageFactory();
|
const storageFactory = new StorageFactory();
|
||||||
|
|
||||||
|
const olmPromise = loadOlm(paths.olm);
|
||||||
// if wasm is not supported, we'll want
|
// if wasm is not supported, we'll want
|
||||||
// to run some olm operations in a worker (mainly for IE11)
|
// to run some olm operations in a worker (mainly for IE11)
|
||||||
let workerPromise;
|
let workerPromise;
|
||||||
@ -121,7 +122,7 @@ export async function main(container, paths) {
|
|||||||
sessionInfoStorage,
|
sessionInfoStorage,
|
||||||
request,
|
request,
|
||||||
clock,
|
clock,
|
||||||
olmPromise: loadOlm(paths.olm),
|
olmPromise,
|
||||||
workerPromise,
|
workerPromise,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user