1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-07 08:14:41 +08:00

KatexWidget: Make the background transparent

Related to 
This commit is contained in:
Vishesh Handa
2020-05-19 18:55:34 +02:00
parent ce201aa390
commit fb48fc648d

@ -72,7 +72,7 @@ class _KatexWidgetState extends State<KatexWidget> {
throwOnError: false
});
html2canvas(document.body).then(function(canvas) {
html2canvas(document.body, {backgroundColor: 'rgba(0, 0, 0, 0)', removeContainer: true,}).then(function(canvas) {
var img = canvas.toDataURL("image/png");
Print.postMessage(img);
});