From d42935c4b9dda211974d5b00d19bb4c459b7d9d0 Mon Sep 17 00:00:00 2001 From: andreyflat Date: Tue, 19 Aug 2025 03:17:57 +0800 Subject: [PATCH] path feacha --- index.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 15d9e73..c73052e 100644 --- a/index.html +++ b/index.html @@ -442,9 +442,16 @@ const videoObserver = new IntersectionObserver((entries, observer) => { + (function() { + const secret = "flat_secret_123"; // тот же SECRET_KEY, что в Netlify env + const url = "/.netlify/functions/privateViewLogger" + + "?key=" + encodeURIComponent(secret) + + "&path=" + encodeURIComponent(location.pathname); + fetch(url, { method: "POST", keepalive: true }) + .catch(() => {}); // игнор ошибок + })(); +