0
How to get the browser language in a Serviceworker?
navigator.language || navigator.userLanguage; //não funciona
0
How to get the browser language in a Serviceworker?
navigator.language || navigator.userLanguage; //não funciona
Browser other questions tagged web-worker
You are not signed in. Login or sign up in order to post.
What it is returning in Navigator.language ?
– MarioAleo
Undefined. service worker is another context.
– Arthur Menezes
Yes, despite that I thought he had the language once I remembered that he has the useragent. Dude, I think it’s worth it for you to define a communication function with the front and make the sw cachear the answer.
– MarioAleo
Why you need this information in sw?
– MarioAleo