mirror of
https://github.com/danbulant/slightlyComplicatedTicTacToe
synced 2026-07-05 11:10:57 +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) {
|
function check(e: MouseEvent) {
|
||||||
if(twoPlayer) return;
|
if(!moves.length) return;
|
||||||
var confirmed = confirm("Are you sure you want to quit?");
|
var confirmed = confirm("Are you sure you want to quit?");
|
||||||
if(!confirmed) return e.preventDefault() || false;
|
if(!confirmed) return e.preventDefault() || false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue