Fixed 'Clear All IO' button

This commit is contained in:
n1474335 2023-02-03 15:54:45 +00:00
parent 0b2cb7e68c
commit 7a2517fd61
3 changed files with 31 additions and 19 deletions

View file

@ -639,6 +639,7 @@ class OutputWaiter {
async bufferToStr(buffer) {
const encoding = this.getChrEnc();
if (buffer.byteLength === 0) return "";
return await new Promise(resolve => {
this.manager.worker.bufferToStr(buffer, encoding, r => {
resolve(r.value);