2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

Reset progress on statechange events. Fixes #329.

This commit is contained in:
n1474335
2018-08-19 23:07:53 +01:00
parent 92d9abf43a
commit 481a4266b0

View File

@@ -115,7 +115,7 @@ class App {
* @param {boolean} [step] - Set to true if we should only execute one operation instead of the
* whole recipe.
*/
bake(step) {
bake(step=false) {
if (this.baking) return;
// Reset attemptHighlight flag
@@ -634,6 +634,7 @@ class App {
* @param {event} e
*/
stateChange(e) {
this.progress = 0;
this.autoBake();
// Set title