Skip to content
Snippets Groups Projects
Commit 15c38b6b authored by Markin Igor's avatar Markin Igor
Browse files

Strip name from content type

parent 63a55ec0
No related branches found
No related tags found
1 merge request!72Fix attachment image
......@@ -318,7 +318,7 @@ export function getHTML(mime, parts) {
continue;
}
console.log("CID2", contentId);
contentType = contentType[0];
contentType = contentType[0].split(";")[0];
console.log("ContentTYpe", contentType);
const normalizedBody = getBody(mime, parts[i]).replace(newline, "");
const src = "data:" + contentType + ";base64, " + normalizedBody;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment