mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 13:41:50 +02:00
Fixed vercel again.
This commit is contained in:
parent
4ea3eec98c
commit
4c544361fd
|
@ -69,8 +69,7 @@ export async function getLocation(ip, req) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
country,
|
country,
|
||||||
// Vercel documentation says they return only region, but that is not always the case
|
subdivision1: region,
|
||||||
subdivision1: region.includes('-') ? region : `${country}-${region}`,
|
|
||||||
city: decodeURIComponent(city),
|
city: decodeURIComponent(city),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user