0

how to detect if our code running in web version of sololearn ?

27th Aug 2020, 8:23 AM
Rei
Rei - avatar
5 Réponses
+ 3
Check the host with window.location.hostname
27th Aug 2020, 9:11 AM
Toni Isotalo
Toni Isotalo - avatar
+ 1
navigator.appVersion
27th Aug 2020, 8:42 AM
v@msi😉
v@msi😉 - avatar
+ 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.
27th Aug 2020, 8:58 AM
v@msi😉
v@msi😉 - avatar
+ 1
ᴉsɯ@ʌ🙃🙃 dont worry :) Toni Isotalo aaah that make sense, thank you
27th Aug 2020, 9:19 AM
Rei
Rei - avatar
0
ᴉsɯ@ʌ🙃🙃 both version return same string
27th Aug 2020, 8:54 AM
Rei
Rei - avatar