ViannyCruz commited on
Commit
00c4c50
·
verified ·
1 Parent(s): 829cd10

Update web/index.html

Browse files
Files changed (1) hide show
  1. web/index.html +6 -6
web/index.html CHANGED
@@ -681,10 +681,13 @@
681
  setInterval(updateDateTime, 60000);
682
 
683
  window.addEventListener('storage', function(e) {
684
- if (e.key === 'theme') {
 
685
  updateChartData(7);
686
- }
687
- });
 
 
688
  }
689
 
690
  async function checkAuthentication() {
@@ -2102,9 +2105,6 @@
2102
  localStorage.setItem('theme', newTheme);
2103
  setTimeout(function () {
2104
  overlay.style.opacity = '0';
2105
- setTimeout(function () {
2106
- if (typeof updateChartData === 'function') updateChartData(7);
2107
- }, 200);
2108
  }, 50);
2109
  }, 180);
2110
  }
 
681
  setInterval(updateDateTime, 60000);
682
 
683
  window.addEventListener('storage', function(e) {
684
+ if (e.key === 'theme') {
685
+ setTimeout(function() {
686
  updateChartData(7);
687
+ loadAgeRangesData();
688
+ }, 450);
689
+ }
690
+ });
691
  }
692
 
693
  async function checkAuthentication() {
 
2105
  localStorage.setItem('theme', newTheme);
2106
  setTimeout(function () {
2107
  overlay.style.opacity = '0';
 
 
 
2108
  }, 50);
2109
  }, 180);
2110
  }