From e9c8e944c7d46091a5b7e1480deb8951137f629c Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 9 Aug 2018 14:53:15 -0700 Subject: Fix chess piece rendering --- lib/render-msg.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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 ), -- cgit v1.2.3