reenable only using worker when wasm is not supported

This commit is contained in:
Bruno Windels 2020-09-11 10:53:15 +02:00
parent df25382616
commit 95c6fd5a5b

View File

@ -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: () => {