yizhangliu commited on
Commit
21ad5de
·
1 Parent(s): 9f9dde1

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +1 -1
share_btn.py CHANGED
@@ -36,7 +36,7 @@ share_js = """async () => {
36
  const fileName = 'image-cleaner-${{imgId}}.png';
37
  return new File([blob], fileName, { type: 'image/png' });
38
  }
39
- const gradioEl = document.querySelector('body > gradio-app').shadowRoot;
40
  if (!gradioEl) {
41
  gradioEl = document.querySelector('body > gradio-app');
42
  }
 
36
  const fileName = 'image-cleaner-${{imgId}}.png';
37
  return new File([blob], fileName, { type: 'image/png' });
38
  }
39
+ var gradioEl = document.querySelector('body > gradio-app').shadowRoot;
40
  if (!gradioEl) {
41
  gradioEl = document.querySelector('body > gradio-app');
42
  }