mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
Merge branch 'dev' into analytics
This commit is contained in:
commit
6f2c2d9aa8
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue