2
0
Fork 0
mirror of https://github.com/gchq/CyberChef synced 2025-03-14 05:46:56 +00:00

Update DishWorker.mjs

Fix possible browser freeze
This commit is contained in:
Zack Zhou 2023-05-09 16:07:48 +08:00 committed by GitHub
parent 1bc88728f0
commit 59372a5f17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ async function bufferToStr(data) {
try { try {
str = cptable.utils.decode(data.encoding, new Uint8Array(data.buffer)); str = cptable.utils.decode(data.encoding, new Uint8Array(data.buffer));
} catch (err) { } catch (err) {
str = err; str = err.message;
} }
} }