Commit e9c8e944c7d46091a5b7e1480deb8951137f629c
Fix chess piece rendering
cel committed on 8/9/2018, 9:53:15 PMParent: 3f4a0ab33dbb1adb4f5983e2b437330d2eb82a06
Files changed
lib/render-msg.js | changed |
lib/render-msg.js | ||
---|---|---|
@@ -1307,9 +1307,9 @@ | ||
1307 | 1307 … | self.wrap([ |
1308 | 1308 … | h('div', h('small', '> ', rootLink)), |
1309 | 1309 … | h('p', |
1310 | 1310 … | // 'player ', (c.ply || ''), ' ', |
1311 | - 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''), | |
1311 … | + 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''), | |
1312 | 1312 … | 'from ' + c.orig, ' ', |
1313 | 1313 … | 'to ' + c.dest |
1314 | 1314 … | ), |
1315 | 1315 … | self.chessBoard(game.board) |
@@ -1374,9 +1374,9 @@ | ||
1374 | 1374 … | if (err) return cb(err) |
1375 | 1375 … | self.wrap([ |
1376 | 1376 … | h('div', h('small', '> ', rootLink)), |
1377 | 1377 … | h('p', |
1378 | - 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''), | |
1378 … | + 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''), | |
1379 | 1379 … | 'from ' + c.orig, ' ', |
1380 | 1380 … | 'to ' + c.dest |
1381 | 1381 … | ), |
1382 | 1382 … | h('p', |
@@ -1413,9 +1413,9 @@ | ||
1413 | 1413 … | self.wrap([ |
1414 | 1414 … | h('div', h('small', '> ', rootLink)), |
1415 | 1415 … | h('p', |
1416 | 1416 … | // 'player ', (c.ply || ''), ' ', |
1417 | - 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''), | |
1417 … | + 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''), | |
1418 | 1418 … | 'from ' + c.orig, ' ', |
1419 | 1419 … | 'to ' + c.dest |
1420 | 1420 … | ), |
1421 | 1421 … | self.chessBoard(game.board) |
Built with git-ssb-web