Skip to content

Commit

Permalink
fix: 🐛 修复部分手机浏览器在禁漫天堂等网站上无法正常显示图片的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Dec 16, 2024
1 parent ddf01c9 commit 357fbaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Manga/components/ComicImg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const ComicImg: Component<ComicImg & { index: number }> = (img) => {
if (img.loadType === 'wait') return '';
if (img.translationType === 'show') return img.translationUrl;
if (store.option.imgRecognition.enabled) return img.blobUrl;
// 有些浏览器不支持显示带有 hash 标识的图片 url
if (img.src.startsWith('blob:')) return img.src.replace(/#\..+/, '');
return img.src;
};

Expand Down

0 comments on commit 357fbaf

Please sign in to comment.