mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Improve queueing of inputs to avoid baking the same input twice.
Fix generation of input URL. Fix worker log levels not being set correctly.
This commit is contained in:
parent
b2406b0465
commit
82183bf204
6 changed files with 79 additions and 18 deletions
|
@ -89,6 +89,10 @@ class InputWaiter {
|
|||
action: "updateMaxTabs",
|
||||
data: this.maxTabs
|
||||
});
|
||||
this.inputWorker.postMessage({
|
||||
action: "setLogLevel",
|
||||
data: log.getLevel()
|
||||
});
|
||||
this.inputWorker.addEventListener("message", this.handleInputWorkerMessage.bind(this));
|
||||
|
||||
|
||||
|
@ -269,6 +273,9 @@ class InputWaiter {
|
|||
case "displayTabSearchResults":
|
||||
this.displayTabSearchResults(r.data);
|
||||
break;
|
||||
case "setUrl":
|
||||
this.setUrl(r.data);
|
||||
break;
|
||||
default:
|
||||
log.error(`Unknown action ${r.action}.`);
|
||||
}
|
||||
|
@ -1199,6 +1206,17 @@ class InputWaiter {
|
|||
this.changeTab(inputNum, this.app.options.syncTabs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the input URL to the new value
|
||||
*
|
||||
* @param {object} urlData
|
||||
* @param {boolean} urlData.includeInput
|
||||
* @param {string} urlData.input
|
||||
*/
|
||||
setUrl(urlData) {
|
||||
this.app.updateUrl(urlData.includeInput, urlData.input);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue