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
1 changed files with 8 additions and 0 deletions

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,