Skip to main content

Set an explicit MIME type

ID
398f615
date
2025-01-26 10:57:49+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
00f4cb2
message
Set an explicit MIME type
changed files
1 file, 4 additions, 1 deletion

Changed files

index.html (13797 → 13878)

diff --git a/index.html b/index.html
index 3085c71..5415078 100644
--- a/index.html
+++ b/index.html
@@ -255,7 +255,10 @@
               // the generated cover the link.
               //
               // Then add the link to the page, where the user can see it.
-              const zipContent = await zip.generateAsync({ type: 'blob' });
+              const zipContent = await zip.generateAsync({
+                type: 'blob',
+                mimeType: 'application/epub+zip',
+              });
 
               const downloadLink = document.createElement('a');
               downloadLink.href = URL.createObjectURL(zipContent);