Skip to content

Commit

Permalink
added simple visitor counter
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJFL committed Jan 24, 2023
1 parent 614f7ee commit 587a3df
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions js/visitCount.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/*
Extremely simple visitor counter
*/

countVisit();
countUniqueVisit();

Expand All @@ -13,7 +9,6 @@ function countVisit() {
function countUniqueVisit() {
if (localStorage.getItem('hasVisited') !== "true") {
localStorage.setItem('hasVisited', true);
console.log(localStorage.getItem('hasVisited'))
fetch('https://api.countapi.xyz/hit/Open-Hue-views-8914860545/uniqueVisits')
.catch(err => console.error(err));
}
Expand Down

0 comments on commit 587a3df

Please sign in to comment.