Skip to content

Commit c03cce2

Browse files
committed
chore(Picviewer CE+): Auto-generate dist.user.js
1 parent f67a809 commit c03cce2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Picviewer CE+/dist.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)