added format parameter to getBoardState()

This commit is contained in:
mig 2017-04-25 09:36:21 +02:00
parent 494f1a90c7
commit d755b811cc

View file

@ -971,12 +971,12 @@
return ProxiedMethod(this, "getPossibleMoves", arguments);
}
GameProxy.prototype.getBoardState = function () {
GameProxy.prototype.getBoardState = function (format) {
var self = this;
if (this.game) {
var self = this;
return new Promise(function (resolve, reject) {
resolve(self.game.mBoard.ExportBoardState(self.game));
resolve(self.game.mBoard.ExportBoardState(self.game,format));
});
} else
return ProxiedMethod(this, "getBoardState", arguments);