Merge branch 'fix-testui-race-condition' of https://github.com/zb3/CyberChef into zb3-fix-testui-race-condition

This commit is contained in:
n1474335 2024-04-24 16:35:12 +01:00
commit 29efd77eaf
No known key found for this signature in database
GPG key ID: D15457B7B4AF3F37
2 changed files with 11 additions and 5 deletions

View file

@ -217,11 +217,13 @@ class InputWaiter {
* @param {number} chrEncVal
* @param {boolean} [manual=false]
*/
chrEncChange(chrEncVal, manual=false) {
chrEncChange(chrEncVal, manual=false, internal=false) {
if (typeof chrEncVal !== "number") return;
this.inputChrEnc = chrEncVal;
this.encodingState = manual ? 2 : this.encodingState;
this.inputChange();
if (!internal) {
this.inputChange();
}
}
/**