Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  window.navigator.geolocation.getCurrentPosition(function() { console.log(arguments); })
This shows me the coordinates and no Error is thrown.

Chrome version:

    Version 50.0.2661.94 m


From localhost? Because that's treated as safe in this case.


I opened up the console of HN's page.


HN is a secure origin so it still works. Test it out on a non-https site.


That's right. I had commented on this before I had my caffeine. My apologies.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: