mirror of
https://github.com/danbulant/slightlyComplicatedTicTacToe
synced 2026-06-19 06:21:19 +00:00
fix check when exiting, fix #11
This commit is contained in:
parent
f6dddcfb52
commit
af3d0481ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue