Skip to content

Commit

Permalink
Update 82_infobox.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Aug 26, 2021
1 parent 69b0e6c commit 152c9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/82_infobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ let infobox_props = {
let api_string = "API: ?"; // Default.

if (ltype === "chessdbcn") {
if (typeof lookup_moves[info.move] === "number") {
let val = lookup_moves[info.move];
let val = lookup_moves[info.move];
if (typeof val === "number") {
if ((config.cp_pov === "b" && node.board.active === "w") || (config.cp_pov === "w" && node.board.active === "b")) {
val *= -1;
}
Expand Down

0 comments on commit 152c9d3

Please sign in to comment.