Skip to content

Commit

Permalink
Electron 21, replace status api, dependency upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed Nov 7, 2022
1 parent fa47c9c commit 190bb4c
Show file tree
Hide file tree
Showing 3 changed files with 325 additions and 1,657 deletions.
3 changes: 2 additions & 1 deletion app/assets/js/scripts/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ const refreshServerStatus = async function(fade = false){
refreshMojangStatuses()
// Server Status is refreshed in uibinder.js on distributionIndexDone.

// Refresh statuses every hour. The status page itself refreshes every day so...
let mojangStatusListener = setInterval(() => refreshMojangStatuses(true), 60*60*1000)
// Set refresh rate to once every 5 minutes.
let mojangStatusListener = setInterval(() => refreshMojangStatuses(true), 300000)
let serverStatusListener = setInterval(() => refreshServerStatus(true), 300000)

/**
Expand Down
Loading

0 comments on commit 190bb4c

Please sign in to comment.