Tristan Caron
05/07/2018, 11:57 AMwindow.addEventListener("click", {
document.querySelectorAll(".contextMenu").asList().forEach {
(it as HTMLElement).style.visibility = "hidden"
}
}, mapOf("once" to true))
Something similar, I did not try 😅