mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-22 15:56:16 -04:00
Removed autoBakePause flag and statechange trigger in InputWaiter.set() as they are redundant.
This commit is contained in:
parent
0a709acafe
commit
a79be1e3ef
2 changed files with 4 additions and 26 deletions
|
@ -215,7 +215,8 @@ class InputWaiter {
|
|||
* Handler for Chr Enc change events
|
||||
* Sets the input character encoding
|
||||
* @param {number} chrEncVal
|
||||
* @param {boolean} [manual=false]
|
||||
* @param {boolean} [manual=false] - Flag to indicate the encoding was set by the user
|
||||
* @param {boolean} [internal=false] - Flag to indicate this was set internally, i.e. by loading from URI
|
||||
*/
|
||||
chrEncChange(chrEncVal, manual=false, internal=false) {
|
||||
if (typeof chrEncVal !== "number") return;
|
||||
|
@ -641,10 +642,6 @@ class InputWaiter {
|
|||
const inputStr = toBase64(inputVal, "A-Za-z0-9+/");
|
||||
this.app.updateURL(true, inputStr);
|
||||
}
|
||||
|
||||
// Trigger a state change
|
||||
if (!silent) window.dispatchEvent(this.manager.statechange);
|
||||
|
||||
}.bind(this));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue