From 438ad19a536dab544b6071c741ab6107bf63dabb Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 17 Jul 2024 01:17:46 -0500 Subject: revert function name --- public/board.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/board.js b/public/board.js index 4afaeb7..bd39363 100644 --- a/public/board.js +++ b/public/board.js @@ -32,7 +32,7 @@ function handle_highlight(id) { } function handle_move(from_id, to_id) { - function fun() { + return function() { let table = { 1: 'K', 2: 'Q', 3: 'R', 4: 'B', 5: 'N', 6: 'p' } let from_y = from_id.charCodeAt(0) - 48 @@ -143,6 +143,4 @@ function handle_move(from_id, to_id) { to_move = !to_move } - - return fun; } -- cgit v1.2.3