diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-08-09 14:53:15 -0700 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-08-09 14:53:15 -0700 |
commit | e9c8e944c7d46091a5b7e1480deb8951137f629c (patch) | |
tree | 92c0468c05e55edd25ad172f7aeea0a38af6a5eb /lib | |
parent | 3f4a0ab33dbb1adb4f5983e2b437330d2eb82a06 (diff) | |
download | patchfoo-e9c8e944c7d46091a5b7e1480deb8951137f629c.tar.gz patchfoo-e9c8e944c7d46091a5b7e1480deb8951137f629c.zip |
Fix chess piece rendering
Diffstat (limited to 'lib')
-rw-r--r-- | lib/render-msg.js | 6 |
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 ), |