fix check when exiting, fix #11

This commit is contained in:
Daniel Bulant 2023-01-21 18:13:02 +01:00
parent f6dddcfb52
commit af3d0481ca

View file

@ -162,7 +162,7 @@
}
function check(e: MouseEvent) {
if(twoPlayer) return;
if(!moves.length) return;
var confirmed = confirm("Are you sure you want to quit?");
if(!confirmed) return e.preventDefault() || false;
}