mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
edit tracker script
This commit is contained in:
parent
d46d091b9c
commit
472c5374ba
1 changed files with 3 additions and 3 deletions
|
|
@ -86,9 +86,9 @@
|
|||
|
||||
const getClientIPAddress = () => {
|
||||
return new Promise((res, rej) => {
|
||||
if (window.ip) {
|
||||
ip = window.ip;
|
||||
res(window.ip);
|
||||
if (window.ip || ip) {
|
||||
ip = ip || window.ip;
|
||||
res(ip);
|
||||
return;
|
||||
}
|
||||
fetch('https://api64.ipify.org/?format=json')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue