diff --git a/src/controller.ts b/src/controller.ts index a0b2ad6..f8c8419 100644 --- a/src/controller.ts +++ b/src/controller.ts @@ -189,11 +189,13 @@ export class Controller, 'preset'>) => { + this.logger.debug('Step element reached', stepSlug, element); this.reachedElements.set(stepSlug, element); const preset = this.findActivePresetWithStep(stepSlug); if (!preset) { + this.logger.debug('Not found preset for step', stepSlug); return; } @@ -207,14 +209,14 @@ export class Controller) => { const {preset, element, stepSlug} = stepData; - this.logger.debug('Step element reached', preset, stepSlug, element); - const allowRun = await this.events.emit('beforeShowHint', {stepData}); if (!this.state.base.enabled) { @@ -749,7 +751,7 @@ export class Controller