0
how to detect if our code running in web version of sololearn ?
5 Answers
+ 3
Check the host with
window.location.hostname
+ 1
navigator.appVersion
+ 1
Rei ok,now I got it. you want know whether the code is compiled by SL editor. Sorry I don't knowđi thought you want know the version of app.
+ 1
á´sÉŻ@Ęđđ dont worry :)
Toni Isotalo aaah that make sense, thank you
0
á´sÉŻ@Ęđđ both version return same string