added the support to multiple to, cc and bcc!

This commit is contained in:
Matteo Manzinello
2019-05-29 12:24:16 +02:00
parent 08e29707bb
commit 783393f343
7 changed files with 16 additions and 12 deletions

View File

@@ -59,7 +59,8 @@
z-index: 10002;
box-sizing: content-box;
text-align: center;
width: 200px;
min-width: 200px;
max-width: 300px;
background-color: #fff;
border-radius: 6px;
box-shadow: 0 2px 6px 0 rgba(10, 10, 10, 0.39);

View File

@@ -252,15 +252,17 @@ const mailgoRender = mailgo => {
let copyButton = getE("mailgo-copy");
// the title of the modal (email address)
titleEl.textContent = mail;
titleEl.innerHTML = mail.split(",").join("<br/>");
// add the details if provided
cc
? ((ccEl.style.display = "block"), (ccValueEl.textContent = cc))
? ((ccEl.style.display = "block"),
(ccValueEl.innerHTML = cc.split(",").join("<br/>")))
: (ccEl.style.display = "none");
bcc
? ((bccEl.style.display = "block"), (bccValueEl.textContent = bcc))
? ((bccEl.style.display = "block"),
(bccValueEl.innerHTML = bcc.split(",").join("<br/>")))
: (bccEl.style.display = "none");
subject