cjovs commited on
Commit
89cf340
·
verified ·
1 Parent(s): 4e8400e

Disable dashboard active polling to reduce Space requests

Browse files
Files changed (1) hide show
  1. web/app.js +0 -3
web/app.js CHANGED
@@ -308,16 +308,13 @@ $$('.segmented-btn').forEach(btn => {
308
  $('#refreshBtn').addEventListener('click', refreshAll);
309
 
310
  let autoRefreshTimer = null;
311
- let activePollTimer = null;
312
 
313
  function startAutoRefresh() {
314
  stopAutoRefresh();
315
  autoRefreshTimer = setInterval(refreshAll, 60000);
316
- activePollTimer = setInterval(updateActive, 2000);
317
  }
318
  function stopAutoRefresh() {
319
  if (autoRefreshTimer) clearInterval(autoRefreshTimer);
320
- if (activePollTimer) clearInterval(activePollTimer);
321
  }
322
  document.addEventListener('visibilitychange', () => {
323
  if (document.hidden) stopAutoRefresh();
 
308
  $('#refreshBtn').addEventListener('click', refreshAll);
309
 
310
  let autoRefreshTimer = null;
 
311
 
312
  function startAutoRefresh() {
313
  stopAutoRefresh();
314
  autoRefreshTimer = setInterval(refreshAll, 60000);
 
315
  }
316
  function stopAutoRefresh() {
317
  if (autoRefreshTimer) clearInterval(autoRefreshTimer);
 
318
  }
319
  document.addEventListener('visibilitychange', () => {
320
  if (document.hidden) stopAutoRefresh();