diff --git a/src/mailgo.js b/src/mailgo.js index 4e8909b..4209e72 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -455,6 +455,11 @@ const hideMailgo = () => { document.body.removeEventListener("keydown", mailgoKeydown, false); }; +// is the modal hidden? +const mailgoHidden = () => { + return getE("mailgo").style.display === "none"; +}; + // decrypt email const mailToEncoded = encoded => (window.location.href = MAILTO + atob(encoded));