mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 08:58:30 +01:00
Setting a text value in the input now closes any open files.
This commit is contained in:
parent
abe87830cd
commit
fe8f8bc712
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ InputWaiter.prototype.set = function(input) {
|
||||||
this.setInputInfo(input.size, null);
|
this.setInputInfo(input.size, null);
|
||||||
} else {
|
} else {
|
||||||
inputText.value = input;
|
inputText.value = input;
|
||||||
|
this.closeFile();
|
||||||
window.dispatchEvent(this.manager.statechange);
|
window.dispatchEvent(this.manager.statechange);
|
||||||
const lines = input.length < (this.app.options.ioDisplayThreshold * 1024) ?
|
const lines = input.length < (this.app.options.ioDisplayThreshold * 1024) ?
|
||||||
input.count("\n") + 1 : null;
|
input.count("\n") + 1 : null;
|
||||||
|
|
Loading…
Reference in a new issue