aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-08-09 14:53:15 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-08-09 14:53:15 -0700
commite9c8e944c7d46091a5b7e1480deb8951137f629c (patch)
tree92c0468c05e55edd25ad172f7aeea0a38af6a5eb /lib
parent3f4a0ab33dbb1adb4f5983e2b437330d2eb82a06 (diff)
downloadpatchfoo-e9c8e944c7d46091a5b7e1480deb8951137f629c.tar.gz
patchfoo-e9c8e944c7d46091a5b7e1480deb8951137f629c.zip
Fix chess piece rendering
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 4fff412..2bc382e 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -1308,7 +1308,7 @@ RenderMsg.prototype.chessMove = function (cb) {
h('div', h('small', '> ', rootLink)),
h('p',
// 'player ', (c.ply || ''), ' ',
- 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''),
+ 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''),
'from ' + c.orig, ' ',
'to ' + c.dest
),
@@ -1375,7 +1375,7 @@ RenderMsg.prototype.chessGameEnd = function (cb) {
self.wrap([
h('div', h('small', '> ', rootLink)),
h('p',
- 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''),
+ 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''),
'from ' + c.orig, ' ',
'to ' + c.dest
),
@@ -1414,7 +1414,7 @@ RenderMsg.prototype.chessMoveFull = function (cb) {
h('div', h('small', '> ', rootLink)),
h('p',
// 'player ', (c.ply || ''), ' ',
- 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''),
+ 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''),
'from ' + c.orig, ' ',
'to ' + c.dest
),