diff options
Diffstat (limited to 'public/board.js')
-rw-r--r-- | public/board.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/board.js b/public/board.js index de3953a..7c41edb 100644 --- a/public/board.js +++ b/public/board.js @@ -115,7 +115,7 @@ function handle_move(from_id, to_id) { let passanted_pawn = document.getElementById(`3${en_passant_move}`) while (passanted_pawn.firstChild) { - onclickpassanted_pawn.removeChild(passanted_pawn.firstChild) + passanted_pawn.removeChild(passanted_pawn.firstChild) } } else { let passanted_pawn = document.getElementById(`4${en_passant_move}`) |