minor type update and bug fix

This commit is contained in:
MathMan05 2024-09-02 22:08:57 -05:00
parent 74203afb39
commit b72d7673f4
3 changed files with 14 additions and 6 deletions

View file

@ -148,7 +148,9 @@ class Emoji {
body.append(emojiElem);
emojiElem.addEventListener("click", () => {
res(emojiClass);
Contextmenu.currentmenu.remove();
if (Contextmenu.currentmenu !== "") {
Contextmenu.currentmenu.remove();
}
});
}
};
@ -182,7 +184,9 @@ class Emoji {
body.append(emoji);
emoji.onclick = _ => {
res(emojit.emoji);
Contextmenu.currentmenu.remove();
if (Contextmenu.currentmenu !== "") {
Contextmenu.currentmenu.remove();
}
};
}
};