X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2Fnotation.js;h=4402e2699cc64974c2e6550edd1bb0c05d4146b8;hp=464b5eee4d60a4ffd66de93eb42e9a382d108f1a;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hpb=9edfb7146fdc4dd08914b2a117d2852e705353aa diff --git a/client/src/utils/notation.js b/client/src/utils/notation.js index 464b5eee..4402e269 100644 --- a/client/src/utils/notation.js +++ b/client/src/utils/notation.js @@ -1,12 +1,13 @@ // Take into account that the move may be a multi-move -export function getFullNotation(move) { +export function getFullNotation(move, type) { + if (!type) type = "notation"; if (Array.isArray(move)) { let notation = ""; for (let i=0; i