projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Synochess in the same way
[vchess.git]
/
client
/
src
/
utils
/
squareId.js
diff --git
a/client/src/utils/squareId.js
b/client/src/utils/squareId.js
index
58ca086
..
a54f1a5
100644
(file)
--- a/
client/src/utils/squareId.js
+++ b/
client/src/utils/squareId.js
@@
-7,5
+7,5
@@
export function getSquareId(o) {
// Inverse function
export function getSquareFromId(id) {
const idParts = id.split("-");
- return [parseInt(idParts[1]
), parseInt(idParts[2]
)];
+ return [parseInt(idParts[1]
, 10), parseInt(idParts[2], 10
)];
}