working on new parameter: showFooter to hide or not the mailgo.dev in the footer of the modal

This commit is contained in:
Matteo Manzinello
2020-07-29 10:08:11 +02:00
parent 68e8b619d4
commit a7c0f7e48c
2 changed files with 15 additions and 2 deletions

View File

@@ -261,7 +261,13 @@ const mailgoInit = (): void => {
modalContent.appendChild(copyMail);
modalContent.appendChild(byElement());
// show mailgo.dev in footer only if showFooter == true
if (
typeof config?.showFooter !== "undefined" &&
config?.showFooter === false
) {
modalContent.appendChild(byElement());
}
// add the modal at the end of the body
document.body.appendChild(modalMailto);
@@ -385,7 +391,13 @@ const mailgoInit = (): void => {
modalContent.appendChild(copyTel);
modalContent.appendChild(byElement());
// show mailgo.dev in footer only if showFooter == true
if (
typeof config?.showFooter !== "undefined" &&
config?.showFooter === false
) {
modalContent.appendChild(byElement());
}
// add the modal at the end of the body
document.body.appendChild(modalTel);