added a function to find if mailgo is showing

This commit is contained in:
Matteo Manzinello 2019-05-20 17:57:30 +02:00
parent 2a34df709f
commit 49597597f4

View File

@ -455,6 +455,11 @@ const hideMailgo = () => {
document.body.removeEventListener("keydown", mailgoKeydown, false); document.body.removeEventListener("keydown", mailgoKeydown, false);
}; };
// is the modal hidden?
const mailgoHidden = () => {
return getE("mailgo").style.display === "none";
};
// decrypt email // decrypt email
const mailToEncoded = encoded => const mailToEncoded = encoded =>
(window.location.href = MAILTO + atob(encoded)); (window.location.href = MAILTO + atob(encoded));