Spaces:
Runtime error
Runtime error
Add html2canvas fix for share
Browse files- share_btn.py +3 -0
share_btn.py
CHANGED
@@ -28,9 +28,12 @@ async () => {
|
|
28 |
return url;
|
29 |
}
|
30 |
async function getImageFile(div) {
|
|
|
|
|
31 |
return new Promise((resolve, reject) =>
|
32 |
html2canvas(div)
|
33 |
.then((canvas) => {
|
|
|
34 |
const imageBlob = canvas.toBlob((blob) => {
|
35 |
const imageId = Date.now();
|
36 |
const fileName = "GILL-" + imageId + ".jpg";
|
|
|
28 |
return url;
|
29 |
}
|
30 |
async function getImageFile(div) {
|
31 |
+
let chatbot = document.getElementById("chatbot");
|
32 |
+
chatbot.style.height = "";
|
33 |
return new Promise((resolve, reject) =>
|
34 |
html2canvas(div)
|
35 |
.then((canvas) => {
|
36 |
+
chatbot.style.height = "400px";
|
37 |
const imageBlob = canvas.toBlob((blob) => {
|
38 |
const imageId = Date.now();
|
39 |
const fileName = "GILL-" + imageId + ".jpg";
|