fixed retry

main
Codinget 5 years ago
parent 7ea6c192c2
commit 9fb228ca3d
  1. 6
      src/js/main.js

@ -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';
}

Loading…
Cancel
Save