+ 4

Does SoloLearn Playground not support the HTML5 webstorage API?

Do I have put an import statement? It would help if you would give me a sample code of the webstorage api(if it is supported by the playground). Thank you for your help.

25th Feb 2019, 2:30 AM
Kaiser CR
Kaiser CR - avatar
6 Answers
+ 8
The Web Storage API works on Code Playground when you're on desktop, but not in the mobile app.
25th Feb 2019, 2:41 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
The mobile app is not enable localstorage feature thus it cannot work on mobile app. It's disable by the app setting settings.setDomStorageEnabled(false); Only sololearn dev can enable it.
25th Feb 2019, 3:15 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Sololearn playground does support the HTML5 webstorage API.
25th Feb 2019, 2:33 AM
Harsh
Harsh - avatar
+ 2
As Hatsey Rei pointed out, it DOES NOT work on the mobile app, not for me atleast. I now use the website. Thank you to everyone who took the time to answer this question.
25th Feb 2019, 5:23 AM
Kaiser CR
Kaiser CR - avatar
+ 1
Is this what you're looking for? https://code.sololearn.com/W3M2RmtJM80j/#html
25th Feb 2019, 2:33 AM
yinhaodragon7
yinhaodragon7 - avatar
0
Hatsy Rei for me at least, Web Storage works on the app too.
25th Feb 2019, 3:07 AM
yinhaodragon7
yinhaodragon7 - avatar