why is my JS game not ending on the mobile version of sololearn? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

why is my JS game not ending on the mobile version of sololearn?

I recently posted a tutorial that i completed in code playground called "canvas tutorial using js". On the desktop version of sololearn, the game doesn't reload after win or lose, but on the mobile version, the game doesn't end at all... what's going on?

17th Nov 2017, 2:00 PM
Matt Holdsworth
Matt Holdsworth - avatar
2 Answers
+ 6
79: document.location.reload(); Reloading would cause a browser to spawn (a Chromium webview response, not SoloLearn's action). SoloLearn appears to have reloads disabled, which seems like a good idea to me. You'll have to add reset code instead of relying on a server round-trip ...in my opinion better practice anyway :)
17th Nov 2017, 2:41 PM
Kirk Schafer
Kirk Schafer - avatar
+ 6
Hi matt. Mobile version of sololearn works on an java environment. there are some limitations with compilation. Sure you can view your code using the web version.
17th Nov 2017, 2:17 PM
Asiri H
Asiri H - avatar