mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Turn input tabs into progress bars
This commit is contained in:
parent
9d60ef5f72
commit
713f10e63a
2 changed files with 7 additions and 1 deletions
|
@ -212,6 +212,12 @@ class InputWaiter {
|
|||
handleLoaderMessage(e) {
|
||||
const r = e.data;
|
||||
|
||||
if (r.hasOwnProperty("progress") && r.hasOwnProperty("inputNum")) {
|
||||
this.manager.tabs.updateInputTabProgress(r.inputNum, r.progress, 100);
|
||||
} else if (r.hasOwnProperty("fileBuffer")) {
|
||||
this.manager.tabs.updateInputTabProgress(r.inputNum, 100, 100);
|
||||
}
|
||||
|
||||
if (r.hasOwnProperty("fileBuffer")) {
|
||||
this.inputWorker.postMessage({
|
||||
action: "loaderWorkerMessage",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue