mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +01:00
Fixed vercel again.
This commit is contained in:
parent
4ea3eec98c
commit
4c544361fd
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue