Spaces:
Runtime error
Runtime error
Fix saving of png
Browse files- 5n3kkqc6.png +0 -0
- bfszmua9.png +0 -0
- kj5smwlo.png +0 -0
- mm9e8v85.png +0 -0
- mxzu46x1.png +0 -0
- share_btn.py +3 -0
5n3kkqc6.png
ADDED
bfszmua9.png
ADDED
kj5smwlo.png
ADDED
mm9e8v85.png
ADDED
mxzu46x1.png
ADDED
share_btn.py
CHANGED
@@ -89,9 +89,12 @@ async () => {
|
|
89 |
}
|
90 |
|
91 |
async function getImageFile(div) {
|
|
|
|
|
92 |
return new Promise((resolve, reject) =>
|
93 |
html2canvas(div)
|
94 |
.then((canvas) => {
|
|
|
95 |
const imageId = Date.now();
|
96 |
const fileName = "GILL-" + imageId + ".png";
|
97 |
saveAs(canvas.toDataURL(), fileName);
|
|
|
89 |
}
|
90 |
|
91 |
async function getImageFile(div) {
|
92 |
+
let chatbot = document.getElementById("chatbot");
|
93 |
+
chatbot.style.height = "";
|
94 |
return new Promise((resolve, reject) =>
|
95 |
html2canvas(div)
|
96 |
.then((canvas) => {
|
97 |
+
chatbot.style.height = "400px";
|
98 |
const imageId = Date.now();
|
99 |
const fileName = "GILL-" + imageId + ".png";
|
100 |
saveAs(canvas.toDataURL(), fileName);
|