Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Add logging for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed May 17, 2024
1 parent 69530d2 commit 46f34a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ <h3>Report</h3>
}

async function checkForUpdates() {
console.log("Checking for updates, old commit:", latestRPsRepoCommit)
let checkLatestRPsRepoCommit = await fetchTextFile("latest-rps-repo-commit.txt")
if (checkLatestRPsRepoCommit === latestRPsRepoCommit) return
console.log("Update available, new commit:", checkLatestRPsRepoCommit)
latestRPsRepoCommit = checkLatestRPsRepoCommit
document.getElementById("update-banner").style.display = "block"
let eligibleRPsBefore = [... eligibleRPs]
Expand Down Expand Up @@ -358,7 +360,7 @@ <h3>Report</h3>
await fetchMetadata()
buildFocusInputSelectChoices()
await validateAll()
setInterval(checkForUpdates, 60 * 1000)
setInterval(checkForUpdates, 10 * 1000)
}

run()
Expand Down

0 comments on commit 46f34a0

Please sign in to comment.