added a method to find if the modal tel is showing (refactor needed)
This commit is contained in:
parent
b9f4454b30
commit
4d5940f86b
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user