added the support to multiple to, cc and bcc!
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user