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