fixed retry

This commit is contained in:
Nathan DECHER 2020-04-05 22:22:11 +02:00
parent 3a571a9c30
commit a7e2d1c201

View file

@ -174,7 +174,8 @@
// act on it
if(result=='retry') {
restart();
const {category, levelId, filename}=snek.userdata;
startGame(category, levelId, filename);
} else if(result=='menu') {
location.hash='menu';
} else if(result=='next') {
@ -208,7 +209,8 @@
// act on it
if(result=='retry') {
restart();
const {category, levelId, filename}=snek.userdata;
startGame(category, levelId, filename);
} else if(result=='menu') {
location.hash='menu';
}