1
0
mirror of synced 2024-11-15 02:37:40 +01:00

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

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