From b3218d795fcf640289257a5bdd271fea4161f8da Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 3 Nov 2023 14:42:28 -0400 Subject: [PATCH] ipad: Clean up error messages on image failure --- src/ipad.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ipad.ts b/src/ipad.ts index 39fcf35..4fe8e30 100644 --- a/src/ipad.ts +++ b/src/ipad.ts @@ -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() {