From fae6d97c3e3c3aae17df153c9c8716068acabe9f Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 24 Mar 2022 14:17:40 +0530 Subject: [PATCH] avoid loading x2t twice --- www/common/onlyoffice/x2t/x2t.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/onlyoffice/x2t/x2t.js b/www/common/onlyoffice/x2t/x2t.js index 9c1289c56..6e3badf02 100644 --- a/www/common/onlyoffice/x2t/x2t.js +++ b/www/common/onlyoffice/x2t/x2t.js @@ -1354,7 +1354,7 @@ function createWasm() { })); } function instantiateAsync() { - if (!wasmBinary && typeof WebAssembly.instantiateStreaming === "function" && !isDataURI(wasmBinaryFile) && typeof fetch === "function") { + if (false && !wasmBinary && typeof WebAssembly.instantiateStreaming === "function" && !isDataURI(wasmBinaryFile) && typeof fetch === "function") { fetch(wasmBinaryFile, { credentials: "same-origin" }).then((function(response) {