Created
April 2, 2014 15:28
-
-
Save pjb3/9936421 to your computer and use it in GitHub Desktop.
How to fake your location in a browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@navigator.geolocation.watchPosition = (callback) -> | |
setInterval(-> | |
callback | |
coords: | |
latitude: 39.286031201326416, | |
longitude: -76.61204230156727 | |
, 5000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!
Plain JavaScript version: