mirror of
https://github.com/goodtube4u/goodtube.git
synced 2025-11-22 10:16:11 +00:00
Tidy
This commit is contained in:
@@ -1262,10 +1262,12 @@
|
||||
|
||||
// Count unique users
|
||||
function goodTube_stats_user() {
|
||||
// If there's no cookie
|
||||
if (!goodTube_helper_getCookie('goodTube_embedUserUnique')) {
|
||||
// Count a unique user
|
||||
fetch('https://api.counterapi.dev/v1/goodtube/users/up/');
|
||||
|
||||
// Set a cookie to only count users once
|
||||
// Set a cookie to only count unique users once
|
||||
goodTube_helper_setCookie('goodTube_embedUserUnique', 'true');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user