mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Change to add input tabs as inputs are added, instead of at the end.
Change outputWaiter to use outputExists instead of getOutput
This commit is contained in:
parent
50f9bbeac3
commit
43747accd5
3 changed files with 74 additions and 80 deletions
|
@ -563,13 +563,7 @@ self.loadFiles = function(filesData) {
|
|||
self.activateLoaderWorker();
|
||||
}
|
||||
|
||||
// self.refreshTabs(lastInputNum, "right");
|
||||
self.getLoadProgress();
|
||||
|
||||
self.postMessage({
|
||||
action: "addInputs",
|
||||
data: inputNums
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -611,15 +605,15 @@ self.addInput = function(changeTab=false, type, fileData={name: "unknown", size:
|
|||
}
|
||||
self.inputs[inputNum] = newInputObj;
|
||||
|
||||
if (changeTab) {
|
||||
self.postMessage({
|
||||
action: "inputAdded",
|
||||
data: {
|
||||
changeTab: changeTab,
|
||||
inputNum: inputNum
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
self.postMessage({
|
||||
action: "inputAdded",
|
||||
data: {
|
||||
changeTab: changeTab,
|
||||
inputNum: inputNum
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
return inputNum;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue