File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12401,7 +12401,7 @@ ImgOps | https://imgops.com/#b#`;
1240112401 function urlToBlobWithFetch(urlString, cb){
1240212402 fetch(urlString).then(response => response.blob()).then(blob => {
1240312403 let ext = extFromMimeAndUrl(blob.type, urlString);
12404- if (ext && ext .indexOf("text/html") === 0 && (blob.size || 0) < 1000) return cb(null, '');
12404+ if (blob.type && blob.type .indexOf("text/html") === 0 && (blob.size || 0) < 1000) return cb(null, '');
1240512405 if (ext === "none") ext = "webp";
1240612406 let conversion = formatDict.get(ext);
1240712407 if (canvas && conversion) {
@@ -12614,7 +12614,7 @@ ImgOps | https://imgops.com/#b#`;
1261412614 let blob = d.response;
1261512615 if (!blob.type) return urlToBlob(url, cb, forcePng, tryTimes);
1261612616 let ext = extFromMimeAndUrl(blob.type, url);
12617- if (ext && ext .indexOf("text/html") === 0 && (blob.size || 0) < 100000) {
12617+ if (blob.type && blob.type .indexOf("text/html") === 0 && (blob.size || 0) < 100000) {
1261812618 urlToBlobWithFetch(url, cb);
1261912619 return;
1262012620 }
You can’t perform that action at this time.
0 commit comments