Skip to content

Commit

Permalink
Merge pull request #2 from RedGuy12/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheColaber authored Aug 15, 2022
2 parents fe81897 + bc40bb3 commit 8e25d11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const element = document.getElementById("usercount");

async function usercount() {
let response = await fetch("https://scratchaddons.com/usercount.json");
let response = await fetch("https://scratchaddons.com/usercount.json?date="+Date.now());
let json = await response.json();

console.log(json);

element.innerHTML = json.count;
element.innerText = json.count;
}

setInterval(usercount, 20000);
usercount()
setInterval(usercount, 30_000);

0 comments on commit 8e25d11

Please sign in to comment.