mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-02-10 18:05:06 +08:00
[chess] Revert changes.
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user