Spaces:
Running
Running
Update js_free-online-image-upscaler.js
Browse files
js_free-online-image-upscaler.js
CHANGED
@@ -3288,7 +3288,10 @@
|
|
3288 |
|
3289 |
// modified
|
3290 |
$('img.right_img_show').on('load', function () {
|
3291 |
-
alert($('img.right_img_show').attr('src'));
|
|
|
|
|
|
|
3292 |
});
|
3293 |
|
3294 |
|
|
|
3288 |
|
3289 |
// modified
|
3290 |
$('img.right_img_show').on('load', function () {
|
3291 |
+
// alert($('img.right_img_show').attr('src'));
|
3292 |
+
console.log('auto download triggered');
|
3293 |
+
var e = document.createElement("a");
|
3294 |
+
e.setAttribute("download", ""), e.setAttribute("href", Fu.saveImage), e.click()
|
3295 |
});
|
3296 |
|
3297 |
|