mirror of
https://github.com/gchq/CyberChef
synced 2025-12-31 23:53:49 +00:00
Input tab headers now show the filename for file inputs
This commit is contained in:
@@ -750,7 +750,10 @@ class InputWaiter {
|
||||
const activeTab = this.manager.tabs.getActiveTab("input");
|
||||
|
||||
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
|
||||
window.dispatchEvent(this.manager.statechange);
|
||||
|
||||
Reference in New Issue
Block a user