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
1 changed files with 1 additions and 1 deletions

View File

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