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>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function () {
|
||||||
const secret = "flat_secret_123"; // тот же SECRET_KEY, что в Netlify env
|
const secret = "flat_secret_123";
|
||||||
const url = "/.netlify/functions/privateViewLogger"
|
const url = "/.netlify/functions/privateViewLogger"
|
||||||
+ "?key=" + encodeURIComponent(secret)
|
+ "?key=" + encodeURIComponent(secret)
|
||||||
+ "&path=" + encodeURIComponent(location.pathname);
|
+ "&path=" + encodeURIComponent(location.pathname);
|
||||||
|
|
||||||
fetch(url, { method: "POST", keepalive: true })
|
fetch(url, { cache: "no-store" })
|
||||||
.catch(() => {}); // игнор ошибок
|
.then(r => r.text().then(t => console.log("logger:", r.status, t)))
|
||||||
})();
|
.catch(e => console.log("logger error:", e));
|
||||||
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<button id="scrollToTopBtn" title="Rewind">⇧</button>
|
<button id="scrollToTopBtn" title="Rewind">⇧</button>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue