From 95c6fd5a5bdc36c33cd548e93cb885a69899ecb3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 11 Sep 2020 10:53:15 +0200 Subject: [PATCH] reenable only using worker when wasm is not supported --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index ca0afcaf..2f5165aa 100644 --- a/src/main.js +++ b/src/main.js @@ -102,9 +102,9 @@ export async function main(container, paths) { // if wasm is not supported, we'll want // to run some olm operations in a worker (mainly for IE11) let workerPromise; - // if (!window.WebAssembly) { + if (!window.WebAssembly) { workerPromise = loadOlmWorker(paths); - // } + } const vm = new BrawlViewModel({ createSessionContainer: () => {