TODO: finish draw offer logic + fix inCheck bug (no highlight)
[vchess.git] / client / src / utils / modalClick.js
CommitLineData
dcd68c41
BA
1export function processModalClick(e)
2{
3 // Close a modal when click on it but outside focused element
4 const data = e.target.dataset;
5 if (!!data.checkbox)
6 document.getElementById(data.checkbox).checked = false;
7}