fffiloni commited on
Commit
65b3803
β€’
1 Parent(s): 7e3e953

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +2 -2
share_btn.py CHANGED
@@ -28,10 +28,10 @@ share_js = """async () => {
28
  const imgId = Date.now() % 200;
29
  const isPng = imgEl.src.startsWith(`data:image/png`);
30
  if(isPng){
31
- const fileName = `sd-perception-${{imgId}}.png`;
32
  return new File([blob], fileName, { type: 'image/png' });
33
  }else{
34
- const fileName = `sd-perception-${{imgId}}.jpg`;
35
  return new File([blob], fileName, { type: 'image/jpeg' });
36
  }
37
  }
 
28
  const imgId = Date.now() % 200;
29
  const isPng = imgEl.src.startsWith(`data:image/png`);
30
  if(isPng){
31
+ const fileName = `img-to-sfx-${{imgId}}.png`;
32
  return new File([blob], fileName, { type: 'image/png' });
33
  }else{
34
+ const fileName = `img-to-sfx-${{imgId}}.jpg`;
35
  return new File([blob], fileName, { type: 'image/jpeg' });
36
  }
37
  }