fix
This commit is contained in:
parent
d42935c4b9
commit
23a105fc15
1 changed files with 10 additions and 8 deletions
18
index.html
18
index.html
|
|
@ -442,17 +442,19 @@ const videoObserver = new IntersectionObserver((entries, observer) => {
|
|||
</script>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
const secret = "flat_secret_123"; // тот же SECRET_KEY, что в Netlify env
|
||||
const url = "/.netlify/functions/privateViewLogger"
|
||||
+ "?key=" + encodeURIComponent(secret)
|
||||
+ "&path=" + encodeURIComponent(location.pathname);
|
||||
(function () {
|
||||
const secret = "flat_secret_123";
|
||||
const url = "/.netlify/functions/privateViewLogger"
|
||||
+ "?key=" + encodeURIComponent(secret)
|
||||
+ "&path=" + encodeURIComponent(location.pathname);
|
||||
|
||||
fetch(url, { method: "POST", keepalive: true })
|
||||
.catch(() => {}); // игнор ошибок
|
||||
})();
|
||||
fetch(url, { cache: "no-store" })
|
||||
.then(r => r.text().then(t => console.log("logger:", r.status, t)))
|
||||
.catch(e => console.log("logger error:", e));
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
||||
<button id="scrollToTopBtn" title="Rewind">⇧</button>
|
||||
|
||||
<script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue