Input tab headers now show the filename for file inputs

This commit is contained in:
n1474335 2022-11-04 18:45:52 +00:00
parent 61d4c0ea63
commit a116a2a423
1 changed files with 4 additions and 1 deletions

View File

@ -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);