fixed retry

Nathan DECHER 5 years ago
parent 3a571a9c30
commit a7e2d1c201
  1. 6
      src/js/main.js

@ -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…
Cancel
Save