+ 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?
2 Respostas
+ 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 :)
+ 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.