Skip to content

Commit

Permalink
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ComicRead-AdGuard.user.js
Original file line number Diff line number Diff line change
@@ -10583,7 +10583,8 @@ const main = require('main');
// 使用 fetch 可以复用本地缓存,但有时候会报 cors 问题
return await main.request(url, {
responseType: 'blob',
fetch: true
fetch: true,
noTip: true
}, 3);
} catch {
return await main.request(url, {
3 changes: 2 additions & 1 deletion ComicRead.user.js
Original file line number Diff line number Diff line change
@@ -10517,7 +10517,8 @@ const main = require('main');
// 使用 fetch 可以复用本地缓存,但有时候会报 cors 问题
return await main.request(url, {
responseType: 'blob',
fetch: true
fetch: true,
noTip: true
}, 3);
} catch {
return await main.request(url, {
6 changes: 5 additions & 1 deletion src/site/jm.tsx
Original file line number Diff line number Diff line change
@@ -65,7 +65,11 @@ import {
const downloadImg = async (url: string) => {
try {
// 使用 fetch 可以复用本地缓存,但有时候会报 cors 问题
return await request<Blob>(url, { responseType: 'blob', fetch: true }, 3);
return await request<Blob>(
url,
{ responseType: 'blob', fetch: true, noTip: true },
3,
);
} catch {
return await request<Blob>(
url,

0 comments on commit 4db3c84

Please sign in to comment.