fixed retry
This commit is contained in:
parent
3a571a9c30
commit
a7e2d1c201
1 changed files with 4 additions and 2 deletions
|
@ -174,7 +174,8 @@
|
||||||
|
|
||||||
// act on it
|
// act on it
|
||||||
if(result=='retry') {
|
if(result=='retry') {
|
||||||
restart();
|
const {category, levelId, filename}=snek.userdata;
|
||||||
|
startGame(category, levelId, filename);
|
||||||
} else if(result=='menu') {
|
} else if(result=='menu') {
|
||||||
location.hash='menu';
|
location.hash='menu';
|
||||||
} else if(result=='next') {
|
} else if(result=='next') {
|
||||||
|
@ -208,7 +209,8 @@
|
||||||
|
|
||||||
// act on it
|
// act on it
|
||||||
if(result=='retry') {
|
if(result=='retry') {
|
||||||
restart();
|
const {category, levelId, filename}=snek.userdata;
|
||||||
|
startGame(category, levelId, filename);
|
||||||
} else if(result=='menu') {
|
} else if(result=='menu') {
|
||||||
location.hash='menu';
|
location.hash='menu';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue