Skip to content

Instantly share code, notes, and snippets.

@halan
Created December 12, 2011 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halan/1467336 to your computer and use it in GitHub Desktop.
Save halan/1467336 to your computer and use it in GitHub Desktop.
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(success, error);
} else {
error('not supported');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment