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

Clean up debug logs

parent 15c38b6b
No related branches found
No related tags found
1 merge request!72Fix attachment image
......@@ -304,7 +304,6 @@ export function getHTML(mime, parts) {
if (contentDisposition.indexOf("attachment") >= 0 || contentDisposition.indexOf("inline") >= 0) {
let contentId = getHeaderValue("content-id", parts[i]);
console.log("CID", contentId);
if (contentId === null || contentId === undefined) {
continue;
}
......@@ -317,12 +316,9 @@ export function getHTML(mime, parts) {
if (contentType === null || contentType === undefined) {
continue;
}
console.log("CID2", contentId);
contentType = contentType[0].split(";")[0];
console.log("ContentTYpe", contentType);
const normalizedBody = getBody(mime, parts[i]).replace(newline, "");
const src = "data:" + contentType + ";base64, " + normalizedBody;
console.log("SRC", src);
html = html.split(contentId).join(src);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment