Commit b8ddfedb authored by gijs's avatar gijs

Wrong mime-type test on PDF attachments

parent 9cf3d687
......@@ -663,7 +663,7 @@ window.W = window.W || {};
if (/^data:image\//.test(data)) {
return new W.AttachmentImage({ model: attachment })
} else if ('/data:application\/pdf') {
} else if (/^data:application\/pdf/ .test(data)) {
return new W.AttachmentPDF({ model: attachment })
} else if (/^data:audio\//.test(data)) {
return new W.AttachmentAudio({ model: attachment })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment