[chess] Revert changes.

This commit is contained in:
AlexeyMatveev686
2023-10-12 14:44:46 +03:00
parent 09ab26edfd
commit 9f8b60e620

View File

@ -368,15 +368,8 @@
ctx.drawImage(this.images[this.images_type[_type]], x, y, _size_square, _size_square);
}
}
var result = '';
try {
var imgURL = canvas.toDataURL({format:'jpeg',height:406, multiplier: 0.5});
console.log(imgURL)
} catch (error) {
result = 1;
}
return { image: result, data: this.fen };
return { image: canvas.toDataURL("image/png"), data: this.fen };
},
getData: function()