mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Fixed file loading bug where the wrong input is set
This commit is contained in:
@@ -485,7 +485,10 @@ class InputWaiter {
|
||||
async set(inputNum, inputData, silent=false) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
const activeTab = this.manager.tabs.getActiveTab("input");
|
||||
if (inputNum !== activeTab) return;
|
||||
if (inputNum !== activeTab) {
|
||||
this.changeTab(inputNum, this.app.options.syncTabs);
|
||||
return;
|
||||
}
|
||||
|
||||
// Update current character encoding
|
||||
this.inputChrEnc = inputData.encoding;
|
||||
|
||||
Reference in New Issue
Block a user