- setTimeout(() => {
- modalBox.checked = false;
- this.mode = "idle"; //TODO: not the best way... (to see correct opponent in PGN)
- }, 2000);
+ // Variants may have special PGN structure (so next function isn't defined here)
+ this.pgnTxt = this.vr.getPGN(this.mycolor, this.score, this.fenStart, this.mode);
+ setTimeout(() => { modalBox.checked = false; }, 2000);