edit tracker script

pull/1644/head
Sergei Meza 2022-10-18 12:25:55 +09:00
parent d46d091b9c
commit 472c5374ba
1 changed files with 3 additions and 3 deletions

View File

@ -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')