Start thinking on room.js: TODO, implement and test challenge / new game HH / abort...
[vchess.git] / public / javascripts / utils / squareId.js
index a3423f7..8fec48e 100644 (file)
@@ -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])];
 }