mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
reenable only using worker when wasm is not supported
This commit is contained in:
parent
df25382616
commit
95c6fd5a5b
@ -102,9 +102,9 @@ export async function main(container, paths) {
|
|||||||
// 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;
|
||||||
// if (!window.WebAssembly) {
|
if (!window.WebAssembly) {
|
||||||
workerPromise = loadOlmWorker(paths);
|
workerPromise = loadOlmWorker(paths);
|
||||||
// }
|
}
|
||||||
|
|
||||||
const vm = new BrawlViewModel({
|
const vm = new BrawlViewModel({
|
||||||
createSessionContainer: () => {
|
createSessionContainer: () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user