2
0
mirror of https://github.com/gchq/CyberChef synced 2026-01-07 19:13:24 +00:00

Add comments to inputWorker.

Slightly improve logic for getNearbyNums
This commit is contained in:
j433866
2019-05-14 16:13:36 +01:00
parent 04587a8a47
commit 0855dc617f
5 changed files with 220 additions and 57 deletions

View File

@@ -284,12 +284,12 @@ class InputWaiter {
}
/**
* Sends a message to the inputWorker to get all inputs
* Sends a message to the inputWorker to bake all inputs
*/
getAll() {
bakeAll() {
this.manager.controls.toggleBakeButtonFunction(false, true);
this.inputWorker.postMessage({
action: "getAll"
action: "bakeAll"
});
}
@@ -327,7 +327,7 @@ class InputWaiter {
fileLoaded.textContent = "";
inputText.style.overflow = "auto";
inputText.classList.remove("blur");
inputText.classList.remove("blur");
const lines = inputData.input.length < (this.app.options.ioDisplayThreshold * 1024) ?
inputData.input.count("\n") + 1 : null;
@@ -684,7 +684,6 @@ class InputWaiter {
* @param {FileList} files - The list of files to be loaded
*/
loadUIFiles(files) {
log.error(files);
const numFiles = files.length;
const activeTab = this.getActiveTab();
log.debug(`Loading ${numFiles} files.`);