path feacha

This commit is contained in:
andreyflat 2025-08-19 03:17:57 +08:00
parent d35eb579d1
commit d42935c4b9

View file

@ -442,9 +442,16 @@ const videoObserver = new IntersectionObserver((entries, observer) => {
</script> </script>
<script> <script>
fetch("/.netlify/functions/privateViewLogger?key=flat_secret_123"); (function() {
</script> 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(() => {}); // игнор ошибок
})();
</script>
<button id="scrollToTopBtn" title="Rewind">&#8679;</button> <button id="scrollToTopBtn" title="Rewind">&#8679;</button>