Skip to content

Commit

Permalink
fix: 🐛 修复 jm 弹出多余加载报错的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Jul 25, 2024
1 parent 3959502 commit 4db3c84
Show file tree
Hide file tree
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
Expand Up @@ -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, {
Expand Down
3 changes: 2 additions & 1 deletion ComicRead.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
6 changes: 5 additions & 1 deletion src/site/jm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4db3c84

Please sign in to comment.