mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-25 01:06:16 -04:00
Fixed file loading bug where the wrong input is set
This commit is contained in:
parent
f2bd838596
commit
17c349973d
2 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue