mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix
This commit is contained in:
@@ -9,6 +9,7 @@ class Akinator {
|
|||||||
this.childMode = Boolean(childMode);
|
this.childMode = Boolean(childMode);
|
||||||
|
|
||||||
this.currentStep = 0;
|
this.currentStep = 0;
|
||||||
|
this.stepLastProposition = '';
|
||||||
this.progress = '0.00000';
|
this.progress = '0.00000';
|
||||||
this.answers = answers;
|
this.answers = answers;
|
||||||
this.question = null;
|
this.question = null;
|
||||||
@@ -40,7 +41,7 @@ class Akinator {
|
|||||||
sid: '1',
|
sid: '1',
|
||||||
cm: this.childMode,
|
cm: this.childMode,
|
||||||
answer,
|
answer,
|
||||||
step_last_proposition: '',
|
step_last_proposition: this.stepLastProposition,
|
||||||
session: this.session,
|
session: this.session,
|
||||||
signature: this.signature
|
signature: this.signature
|
||||||
});
|
});
|
||||||
@@ -93,6 +94,7 @@ class Akinator {
|
|||||||
signature: this.signature
|
signature: this.signature
|
||||||
});
|
});
|
||||||
this.guessed = null;
|
this.guessed = null;
|
||||||
|
this.stepLastProposition = body.step;
|
||||||
this.progress = body.progression;
|
this.progress = body.progression;
|
||||||
this.question = body.question;
|
this.question = body.question;
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
Reference in New Issue
Block a user