diff options
author | ame <[email protected]> | 2024-07-17 01:17:46 -0500 |
---|---|---|
committer | ame <[email protected]> | 2024-07-17 01:17:46 -0500 |
commit | 438ad19a536dab544b6071c741ab6107bf63dabb (patch) | |
tree | 95d038d23db29777d8f3d433cbcbe64f64c1bcfd /public | |
parent | 67051d65f3094750f96023cba2c676afd60ded4e (diff) |
revert function name
Diffstat (limited to 'public')
-rw-r--r-- | public/board.js | 4 |
1 files changed, 1 insertions, 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; } |