shorthand if
This commit is contained in:
parent
ec6c123437
commit
6897c001ca
@ -787,12 +787,11 @@
|
|||||||
|
|
||||||
// is the mailgo modal hidden?
|
// is the mailgo modal hidden?
|
||||||
const mailgoIsShowing = (type = MAIL_TYPE) => {
|
const mailgoIsShowing = (type = MAIL_TYPE) => {
|
||||||
if (type === MAIL_TYPE) {
|
return type === MAIL_TYPE
|
||||||
return getDisplay("mailgo") === "flex";
|
? getDisplay("mailgo") === "flex"
|
||||||
} else if (type === TEL_TYPE) {
|
: type === TEL_TYPE
|
||||||
return getDisplay("mailgo-tel") === "flex";
|
? getDisplay("mailgo-tel") === "flex"
|
||||||
}
|
: false;
|
||||||
return false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// window exists
|
// window exists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user