From 31100787cee5b0d5745860995409c85bd109276f Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 16 May 2021 03:21:49 +0200 Subject: [PATCH] ahh whatever --- copyparty/web/up2k.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index 4bd3cb0d..65625fa3 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -985,12 +985,12 @@ function up2k_init(subtle) { if (subtle) subtle.digest('SHA-512', buf).then(hash_done); - else { + else setTimeout(function () { var hasher = new asmCrypto.Sha512(); hasher.process(new Uint8Array(buf)); hasher.finish(); hash_done(hasher.result); - } + }, 1); }; t.t1 = Date.now();