mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Merge branch 'master' into jajaja
# Conflicts: # package.json # pnpm-lock.yaml # src/lib/detect.ts
This commit is contained in:
commit
5ed1d710cb
4 changed files with 5 additions and 4 deletions
|
|
@ -130,7 +130,7 @@ export async function getLocation(ip: string = '', headers: Headers, hasPayloadI
|
|||
);
|
||||
}
|
||||
|
||||
const result = globalThis[MAXMIND].get(ip);
|
||||
const result = globalThis[MAXMIND].get(ip?.split(':')[0]);
|
||||
|
||||
if (result) {
|
||||
const country = result.country?.iso_code ?? result?.registered_country?.iso_code;
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@
|
|||
|
||||
try {
|
||||
const res = await fetch(endpoint, {
|
||||
keepalive: true,
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ type, payload }),
|
||||
headers: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue