From 472c5374ba699a1b5a015e6f8f97788077c711fa Mon Sep 17 00:00:00 2001 From: Sergei Meza Date: Tue, 18 Oct 2022 12:25:55 +0900 Subject: [PATCH] edit tracker script --- tracker/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tracker/index.js b/tracker/index.js index 785a14a8..f71213c1 100644 --- a/tracker/index.js +++ b/tracker/index.js @@ -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')