I am using Firefox 30.0 (latest FF), and navigator.geolocation.getCurrentPosition
is working in Chrome but not in this version of FF.
Here is my code:
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(GEOprocess, GEOdeclined);
}else{
alert('Your browser sucks. Upgrade it.');
}
function GEOdeclined(error) {
alert('Error: ' +error.message);
}
function GEOprocess(position) {
alert('it works');
}
I am getting this error:
Error: Unknown error acquiring position
Note: It stopped working after upgrading Firefox to version 30.0