git ssb

16+

cel / patchfoo



Commit e9c8e944c7d46091a5b7e1480deb8951137f629c

Fix chess piece rendering

cel committed on 8/9/2018, 9:53:15 PM
Parent: 3f4a0ab33dbb1adb4f5983e2b437330d2eb82a06

Files changed

lib/render-msg.jschanged
lib/render-msg.jsView
@@ -1307,9 +1307,9 @@
13071307 self.wrap([
13081308 h('div', h('small', '> ', rootLink)),
13091309 h('p',
13101310 // 'player ', (c.ply || ''), ' ',
1311- 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''),
1311 + 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''),
13121312 'from ' + c.orig, ' ',
13131313 'to ' + c.dest
13141314 ),
13151315 self.chessBoard(game.board)
@@ -1374,9 +1374,9 @@
13741374 if (err) return cb(err)
13751375 self.wrap([
13761376 h('div', h('small', '> ', rootLink)),
13771377 h('p',
1378- 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''),
1378 + 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''),
13791379 'from ' + c.orig, ' ',
13801380 'to ' + c.dest
13811381 ),
13821382 h('p',
@@ -1413,9 +1413,9 @@
14131413 self.wrap([
14141414 h('div', h('small', '> ', rootLink)),
14151415 h('p',
14161416 // 'player ', (c.ply || ''), ' ',
1417- 'moved ' + (piece ? renderChessSymbol(piece) + ' ' : ''),
1417 + 'moved ', (piece ? [renderChessSymbol(piece), ' '] : ''),
14181418 'from ' + c.orig, ' ',
14191419 'to ' + c.dest
14201420 ),
14211421 self.chessBoard(game.board)

Built with git-ssb-web