ipad: Clean up error messages on image failure

This commit is contained in:
Adam Goldsmith 2023-11-03 14:42:28 -04:00
parent 41787763aa
commit e027856b3b

View File

@ -31,10 +31,9 @@ calendarImg.addEventListener('load', () => {
calendarImg.addEventListener('error', (event) => {
spinner.style.display = 'none';
console.error('Error fetching calendar image: ', event);
errorModal.style.display = '';
const message = errorModal.querySelector('.modal-message')!;
message.textContent = `Failed to fetch events: ${event.message}. Displayed events may not be accurate.`;
message.textContent = `Failed to fetch events. Displayed events may not be accurate.`;
});
function refresh() {