added a method to find if the modal tel is showing (refactor needed)

This commit is contained in:
Matteo Manzinello 2019-09-16 09:00:33 +02:00
parent b9f4454b30
commit 4d5940f86b

View File

@ -429,8 +429,6 @@ const mailgoTelRender = mailgo => {
); );
} }
console.log(tel);
// information // information
let titleEl = getE("mailgo-tel-title"); let titleEl = getE("mailgo-tel-title");
@ -645,9 +643,12 @@ const hideMailgo = () => (
(getE("mailgo-tel").style.display = "none") (getE("mailgo-tel").style.display = "none")
); );
// is the modal hidden? // is the mailgo modal hidden?
const mailgoIsShowing = () => getE("mailgo").style.display === "flex"; const mailgoIsShowing = () => getE("mailgo").style.display === "flex";
// is the mailgo tel modal hidden?
const mailgoTelIsShowing = () => getE("mailgo-tel").style.display === "flex";
// decrypt email // decrypt email
const mailToEncoded = encoded => const mailToEncoded = encoded =>
(window.location.href = MAILTO + atob(encoded)); (window.location.href = MAILTO + atob(encoded));