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

Clean up debug logs

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