Spaces:
Running
Running
Update js_free-online-image-upscaler.js
Browse files
js_free-online-image-upscaler.js
CHANGED
@@ -2813,7 +2813,6 @@
|
|
2813 |
},
|
2814 |
loadImage: function(e, t, r) {
|
2815 |
var n = new Image;
|
2816 |
-
console.log(t);
|
2817 |
return n.setAttribute("crossOrigin", "anonymous"), n.crossOrigin = "anonymous", n.src = e, n.onload = function() {
|
2818 |
t && t(n)
|
2819 |
}, n.onerror = function() {
|
@@ -2964,6 +2963,7 @@
|
|
2964 |
if (-1 == e.type.indexOf("image/")) return ju.showMessageBox("error", zu), !1;
|
2965 |
if (10485760 < e.size) return ju.showMessageBox("error", Du), !1;
|
2966 |
var t = e.type.split("/")[1];
|
|
|
2967 |
return !!qu.includes(t) || (ju.showMessageBox("error", Yu), !1)
|
2968 |
}, Uu.prototype.imageShowSizeRatio = function(e) {
|
2969 |
var t = document.querySelector(".right").offsetWidth,
|
|
|
2813 |
},
|
2814 |
loadImage: function(e, t, r) {
|
2815 |
var n = new Image;
|
|
|
2816 |
return n.setAttribute("crossOrigin", "anonymous"), n.crossOrigin = "anonymous", n.src = e, n.onload = function() {
|
2817 |
t && t(n)
|
2818 |
}, n.onerror = function() {
|
|
|
2963 |
if (-1 == e.type.indexOf("image/")) return ju.showMessageBox("error", zu), !1;
|
2964 |
if (10485760 < e.size) return ju.showMessageBox("error", Du), !1;
|
2965 |
var t = e.type.split("/")[1];
|
2966 |
+
console.log(qu.includes(t));
|
2967 |
return !!qu.includes(t) || (ju.showMessageBox("error", Yu), !1)
|
2968 |
}, Uu.prototype.imageShowSizeRatio = function(e) {
|
2969 |
var t = document.querySelector(".right").offsetWidth,
|