mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-07 08:14:41 +08:00
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user