Skip to content

Commit

Permalink
fix: missing MIME type
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Apr 15, 2024
1 parent 059f2e6 commit a23a855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/modules/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class Parser {
this.metadata.getAttachments().then(files => {
if (this.destroyed) return
for (const file of files) {
if (fontRx.test(file.filename) || file.mimetype.toLowerCase().includes('font')) {
if (fontRx.test(file.filename) || file.mimetype?.toLowerCase().includes('font')) {
// this is cursed, but required, as capacitor-node's IPC hangs for 2mins when runnig on 32bit android when sending uint8's
this.client.dispatch('file', { data: JSON.stringify([...file.data]) })
}
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "5.0.8",
"version": "5.0.9",
"private": true,
"author": "ThaUnknown_ <[email protected]>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
Expand Down

0 comments on commit a23a855

Please sign in to comment.