KaTex PoC: Add snippet of html2canvas

With this, maybe we don't even need to have a screenshot ability, and
can just pass the image encoded as a message.
This commit is contained in:
Vishesh Handa
2020-05-03 18:23:14 +02:00
parent 0607bc7fb5
commit ac024c5190

View File

@ -269,3 +269,12 @@ class _MyHomePageState extends State<MyHomePage> {
); );
} }
} }
/*
html2canvas(document.body).then(function(canvas) {
var img = canvas.toDataURL("image/png");
console.log(img);
});
*/