Fix javascript errors emitted in browsers that do not support w3c geolocation
This commit is contained in:
parent
09a021cefe
commit
b688c572c9
|
@ -94,7 +94,7 @@ var GearsGeoLocation = (function() {
|
|||
}
|
||||
|
||||
};
|
||||
})();
|
||||
});
|
||||
|
||||
var AjaxGeoLocation = (function() {
|
||||
// -- PRIVATE
|
||||
|
@ -208,9 +208,9 @@ var AjaxGeoLocation = (function() {
|
|||
}
|
||||
|
||||
};
|
||||
})();
|
||||
});
|
||||
|
||||
// If you have Gears installed use that, else use Ajax ClientLocation
|
||||
navigator.geolocation = (window.google && google.gears) ? GearsGeoLocation : AjaxGeoLocation;
|
||||
navigator.geolocation = (window.google && google.gears) ? GearsGeoLocation() : AjaxGeoLocation();
|
||||
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue
Block a user