Skip to content

Commit c72af09

Browse files
authored
Merge pull request #11 from jwyce/no-history-reset-on-load
2 parents 65e3447 + 818c674 commit c72af09

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/short-trees-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gungi.js': patch
3+
---
4+
5+
prevent history for resetting when calling load(fen)

src/gungi/gungi.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ export class Gungi {
233233

234234
load(fen: string) {
235235
this.#initializeState(parseFEN(fen));
236-
this.#history = [];
237236
}
238237

239238
loadPgn(

0 commit comments

Comments
 (0)