broadfield-dev commited on
Commit
cf33172
·
verified ·
1 Parent(s): 0aab8d6

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +2 -0
templates/index.html CHANGED
@@ -175,6 +175,7 @@
175
  } else if (data.status === "error") {
176
  console.error('Error loading feeds:', data.message);
177
  loading.style.display = 'none';
 
178
  } else {
179
  setTimeout(checkFeeds, 1000); // Check every second
180
  }
@@ -182,6 +183,7 @@
182
  .catch(error => {
183
  console.error('Error checking feeds:', error);
184
  loading.style.display = 'none';
 
185
  });
186
  }
187
  checkFeeds();
 
175
  } else if (data.status === "error") {
176
  console.error('Error loading feeds:', data.message);
177
  loading.style.display = 'none';
178
+ alert('Failed to load RSS feeds. Please try again.');
179
  } else {
180
  setTimeout(checkFeeds, 1000); // Check every second
181
  }
 
183
  .catch(error => {
184
  console.error('Error checking feeds:', error);
185
  loading.style.display = 'none';
186
+ alert('Network error while loading feeds. Please try again.');
187
  });
188
  }
189
  checkFeeds();