If I import js.html.Navigator and then try to access Navigator.language, the compiler reports “Class<js.html.Navigator> has no field languages” even while the docs say it’s there. js.html.Window.navigator has the same problem.
Thankfully if I use js.Browser.navigator (which returns a reference to js.Lib.global.navigator) it works fine, probably because global is a Dynamic.
Thanks—
So the docs for js.Browser.navigator say it is a shortcut to Window.navigator, but inspecting the code that description doesn’t really seem accurate. I would expect those to be interchangeable when coding based on the docs.