mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Loading a new file only causes a statechange event once the whole file has loaded
This commit is contained in:
parent
e2161ec934
commit
f7f07f2cb5
@ -58,13 +58,14 @@ InputWaiter.prototype.get = function() {
|
||||
* @fires Manager#statechange
|
||||
*/
|
||||
InputWaiter.prototype.set = function(input) {
|
||||
const inputText = document.getElementById("input-text");
|
||||
if (input instanceof File) {
|
||||
this.setFile(input);
|
||||
input = "";
|
||||
inputText.value = "";
|
||||
} else {
|
||||
inputText.value = input;
|
||||
window.dispatchEvent(this.manager.statechange);
|
||||
}
|
||||
|
||||
document.getElementById("input-text").value = input;
|
||||
window.dispatchEvent(this.manager.statechange);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user