Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Update playground config
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieujabbour committed Jul 4, 2021
1 parent 2250554 commit cb2fdea
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions playground/src/scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,6 @@ export default <Configuration>{
},
},
plugins: [
(engine: Engine): void => {
engine.on('userAction', (userAction, next) => {
console.log('US', userAction);
return next(userAction);
});
engine.on('loadedNextStep', (nextStep, next) => next(nextStep).then(() => {
console.log('OKOK');
setTimeout(() => {
// if (nextStep.id === 'start') {
// console.log('US', engine.userAction({
// type: 'input', value: 'TEST', fieldId: 'email', stepIndex: 0,
// }));
// }
engine.setValues({ test: 'zokazfok' });
}, 1000);
setTimeout(() => {
console.log(engine.getValues());
}, 2000);
return Promise.resolve(nextStep);
}));
// setTimeout(() => {
// engine.loadValues({ test: 'ok', email: 'zjfdzo' });
// engine.getValues();
// }, 2000);
},

],
} as Configuration;

0 comments on commit cb2fdea

Please sign in to comment.