From 49597597f42f3b9e44011ea13b6a547a6454c1a8 Mon Sep 17 00:00:00 2001 From: Matteo Manzinello Date: Mon, 20 May 2019 17:57:30 +0200 Subject: [PATCH] added a function to find if mailgo is showing --- src/mailgo.js | 5 +++++ 1 file changed, 5 insertions(+) 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));