This commit is contained in:
Maciej Caderek
2022-02-11 19:03:45 +01:00
parent 56abf27629
commit d08080543d
2 changed files with 31 additions and 46 deletions

View File

@@ -107,10 +107,10 @@ const main = async () => {
player.goto(ply);
},
changeBoardStyle(style: BoardStyle) {
board.updateConfig({ boardStyle: style });
board.setStyle(style);
},
changePiecesStyle(style: PiecesStyle) {
board.updateConfig({ piecesStyle: style });
board.setPiecesStyle(style);
},
};