chess fonts can't display pawns
This commit is contained in:
parent
8fa38642cc
commit
8d681be85c
|
@ -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
|
||||
]
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue