projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Start thinking on room.js: TODO, implement and test challenge / new game HH / abort...
[vchess.git]
/
public
/
javascripts
/
utils
/
squareId.js
diff --git
a/public/javascripts/utils/squareId.js
b/public/javascripts/utils/squareId.js
index
a3423f7
..
8fec48e
100644
(file)
--- a/
public/javascripts/utils/squareId.js
+++ b/
public/javascripts/utils/squareId.js
@@
-6,7
+6,8
@@
function getSquareId(o)
}
// Inverse function
-function getSquareFromId(id) {
- let idParts = id.split('-');
+function getSquareFromId(id)
+{
+ const idParts = id.split('-');
return [parseInt(idParts[1]), parseInt(idParts[2])];
}