This commit is contained in:
andreyflat 2025-08-19 03:26:37 +08:00
parent 23a105fc15
commit c69a3e5f6e

View file

@ -442,16 +442,7 @@ const videoObserver = new IntersectionObserver((entries, observer) => {
</script>
<script>
(function () {
const secret = "flat_secret_123";
const url = "/.netlify/functions/privateViewLogger"
+ "?key=" + encodeURIComponent(secret)
+ "&path=" + encodeURIComponent(location.pathname);
fetch(url, { cache: "no-store" })
.then(r => r.text().then(t => console.log("logger:", r.status, t)))
.catch(e => console.log("logger error:", e));
})();
fetch("/.netlify/functions/privateViewLogger?key=flat_secret_123");
</script>