mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Handle progressMessage in background waiter.
Don't update tab progress if there's no set recipe
This commit is contained in:
parent
749ffdd5d1
commit
f497dc3170
@ -68,6 +68,7 @@ class BackgroundWorkerWaiter {
|
||||
break;
|
||||
case "optionUpdate":
|
||||
case "statusMessage":
|
||||
case "progressMessage":
|
||||
// Ignore these messages
|
||||
break;
|
||||
default:
|
||||
|
@ -975,7 +975,9 @@ class OutputWaiter {
|
||||
}
|
||||
tabStr = tabStr.slice(0, 200);
|
||||
this.manager.tabs.updateOutputTabHeader(inputNum, tabStr);
|
||||
this.manager.tabs.updateOutputTabProgress(inputNum, this.outputs[inputNum].progress, this.manager.worker.recipeConfig.length);
|
||||
if (this.manager.worker.recipeConfig !== undefined) {
|
||||
this.manager.tabs.updateOutputTabProgress(inputNum, this.outputs[inputNum].progress, this.manager.worker.recipeConfig.length);
|
||||
}
|
||||
|
||||
const tabItem = this.manager.tabs.getOutputTabItem(inputNum);
|
||||
if (tabItem) {
|
||||
|
Loading…
Reference in New Issue
Block a user