From 4d5940f86ba8f303a3a8b48ca000200abcff679a Mon Sep 17 00:00:00 2001 From: Matteo Manzinello Date: Mon, 16 Sep 2019 09:00:33 +0200 Subject: [PATCH] added a method to find if the modal tel is showing (refactor needed) --- src/mailgo.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mailgo.js b/src/mailgo.js index 40f317f..b7f5941 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -429,8 +429,6 @@ const mailgoTelRender = mailgo => { ); } - console.log(tel); - // information let titleEl = getE("mailgo-tel-title"); @@ -645,9 +643,12 @@ const hideMailgo = () => ( (getE("mailgo-tel").style.display = "none") ); -// is the modal hidden? +// is the mailgo modal hidden? const mailgoIsShowing = () => getE("mailgo").style.display === "flex"; +// is the mailgo tel modal hidden? +const mailgoTelIsShowing = () => getE("mailgo-tel").style.display === "flex"; + // decrypt email const mailToEncoded = encoded => (window.location.href = MAILTO + atob(encoded));