Update share_btn.py
Browse files- 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 = `
|
32 |
return new File([blob], fileName, { type: 'image/png' });
|
33 |
}else{
|
34 |
-
const fileName = `
|
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 |
}
|