diff --git a/src/components/Preview/Manga.tsx b/src/components/Preview/Manga.tsx index 3a19367..ababbab 100644 --- a/src/components/Preview/Manga.tsx +++ b/src/components/Preview/Manga.tsx @@ -100,7 +100,7 @@ export default function PreviewManga({ file }: Props) { file.ondata = (err, data, final) => { if (err) throw err; // Check if the file is an image - if (!file.name.toLowerCase().includes(".jpg" || ".jpeg" || ".png" || ".gif" || ".webp")) return; + if (![".jpg", ".jpeg", ".png", ".gif", ".webp"].some(ext => file.name.toLowerCase().endsWith(ext))) return; if (!final) return; // Skip if not fully loaded const blob = new Blob([data]);