Rebranding app and naming
This commit is contained in:
@@ -13,11 +13,11 @@ export function haversineKm(lat1, lon1, lat2, lon2) {
|
||||
export function getUserPosition() {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!navigator.geolocation) {
|
||||
reject(new Error('Geolocation not supported by this browser'));
|
||||
reject(new Error('Geolocalización no compatible con este navegador'));
|
||||
return;
|
||||
}
|
||||
if (typeof window !== 'undefined' && window.isSecureContext === false) {
|
||||
reject(new Error('Geolocation requires HTTPS (or localhost)'));
|
||||
reject(new Error('La geolocalización requiere HTTPS (o localhost)'));
|
||||
return;
|
||||
}
|
||||
navigator.geolocation.getCurrentPosition(
|
||||
|
||||
Reference in New Issue
Block a user