mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +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 = () => {
|
const getClientIPAddress = () => {
|
||||||
return new Promise((res, rej) => {
|
return new Promise((res, rej) => {
|
||||||
if (window.ip) {
|
if (window.ip || ip) {
|
||||||
ip = window.ip;
|
ip = ip || window.ip;
|
||||||
res(window.ip);
|
res(ip);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fetch('https://api64.ipify.org/?format=json')
|
fetch('https://api64.ipify.org/?format=json')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue