``` window.addEventListener("click", { docume...
# javascript
t
Copy code
window.addEventListener("click",  {
    document.querySelectorAll(".contextMenu").asList().forEach {
        (it as HTMLElement).style.visibility = "hidden"
    }
}, mapOf("once" to true))
Something similar, I did not try 😅