mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Use function in TabWaiter
This commit is contained in:
parent
be0e12589d
commit
d99cf9d499
@ -953,11 +953,7 @@ class OutputWaiter {
|
||||
* @param {number} inputNum
|
||||
*/
|
||||
async displayTabInfo(inputNum) {
|
||||
const tabItem = this.manager.tabs.getOutputTabItem(inputNum);
|
||||
if (!tabItem) return;
|
||||
|
||||
const tabContent = tabItem.firstElementChild,
|
||||
dish = this.getOutputDish(inputNum);
|
||||
const dish = this.getOutputDish(inputNum);
|
||||
let tabStr = "";
|
||||
|
||||
if (dish !== null) {
|
||||
@ -966,12 +962,8 @@ class OutputWaiter {
|
||||
}
|
||||
|
||||
tabStr = tabStr.slice(0, 200);
|
||||
if (tabStr === "") {
|
||||
tabStr = `Tab ${inputNum}`;
|
||||
} else {
|
||||
tabStr = `${inputNum}: ${tabStr}`;
|
||||
}
|
||||
tabContent.innerText = tabStr;
|
||||
|
||||
this.manager.tabs.updateOutputTabHeader(inputNum, tabStr);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user