aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
),