Only count views on the official instances

This commit is contained in:
Nikita Karamov 2022-12-23 03:05:09 +01:00
parent 1650a4bca1
commit 5f0e28e506
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD

View file

@ -38,6 +38,14 @@ fetch("//gc.zgo.at/", { method: "HEAD" })
return;
}
if (
window.location.host !== "toot.kytta.dev" &&
window.location.host !== "s2f.kytta.dev" &&
window.location.host !== "share2fedi.kytta.dev"
) {
return;
}
const screen = encodeURIComponent(
[
window.screen.width,