chess fonts can't display pawns

This commit is contained in:
Thibault Duplessis 2016-01-19 09:02:39 +07:00
parent 8fa38642cc
commit 8d681be85c
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ function renderMove(ctrl, move, path) {
defined(eval.cp) ? renderEvalTag(util.renderEval(eval.cp)) : (
defined(eval.mate) ? renderEvalTag('#' + eval.mate) : null
),
move.san
move.san[0] === 'P' ? move.san.slice(1) : move.san
]
};
}

View file

@ -17,7 +17,7 @@ function renderMove(step, curPly, orEmpty) {
attrs: step.ply !== curPly ? {} : {
class: 'active'
},
children: [step.san]
children: [step.san[0] === 'P' ? step.san.slice(1) : step.san]
} : (orEmpty ? emptyMove : null)
}