From 6e4b1c891cdaa765f6753a8e5b1ac31d62e47c25 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 27 Mar 2026 18:15:26 -0300 Subject: [PATCH] feat: append IP + geo (city, region, country, org) to feedback webhook via ipapi.co --- index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/index.html b/index.html index 4359d9e..daf1c44 100644 --- a/index.html +++ b/index.html @@ -2653,6 +2653,18 @@ var fd = new FormData(); fd.append("message", text); fd.append("page", window.location.href); + try { + var geo = await fetch( + "https://ipapi.co/json/", + ).then(function (r) { + return r.json(); + }); + fd.append("ip", geo.ip || ""); + fd.append("city", geo.city || ""); + fd.append("region", geo.region || ""); + fd.append("country", geo.country_name || ""); + fd.append("org", geo.org || ""); + } catch (_) {} await fetch( "https://002-001-5dd6e535-4d1c-46bc-9bd9-42ad4bc5f082.odoo4projects.com/webhook/2fe3d1fe-eff9-45aa-8d0f-88738d443946", { method: "POST", body: fd },