jykoh commited on
Commit
bad07d1
β€’
1 Parent(s): cf26d89

Fix saving of png

Browse files
Files changed (6) hide show
  1. 5n3kkqc6.png +0 -0
  2. bfszmua9.png +0 -0
  3. kj5smwlo.png +0 -0
  4. mm9e8v85.png +0 -0
  5. mxzu46x1.png +0 -0
  6. 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);