mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-11 16:51:31 -04:00
Fixed 'Clear All IO' button
This commit is contained in:
parent
0b2cb7e68c
commit
7a2517fd61
3 changed files with 31 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue