mirror of
https://github.com/gchq/CyberChef
synced 2025-01-04 00:38:41 +00:00
Input tab headers now show the filename for file inputs
This commit is contained in:
parent
61d4c0ea63
commit
a116a2a423
1 changed files with 4 additions and 1 deletions
|
@ -750,7 +750,10 @@ class InputWaiter {
|
||||||
const activeTab = this.manager.tabs.getActiveTab("input");
|
const activeTab = this.manager.tabs.getActiveTab("input");
|
||||||
|
|
||||||
this.updateInputValue(activeTab, value);
|
this.updateInputValue(activeTab, value);
|
||||||
this.manager.tabs.updateTabHeader(activeTab, value.slice(0, 100).replace(/[\n\r]/g, ""), "input");
|
this.inputWorker.postMessage({
|
||||||
|
action: "updateTabHeader",
|
||||||
|
data: activeTab
|
||||||
|
});
|
||||||
|
|
||||||
// Fire the statechange event as the input has been modified
|
// Fire the statechange event as the input has been modified
|
||||||
window.dispatchEvent(this.manager.statechange);
|
window.dispatchEvent(this.manager.statechange);
|
||||||
|
|
Loading…
Reference in a new issue