ipad: Clean up error messages on image failure
This commit is contained in:
parent
41787763aa
commit
e027856b3b
@ -31,10 +31,9 @@ calendarImg.addEventListener('load', () => {
|
|||||||
|
|
||||||
calendarImg.addEventListener('error', (event) => {
|
calendarImg.addEventListener('error', (event) => {
|
||||||
spinner.style.display = 'none';
|
spinner.style.display = 'none';
|
||||||
console.error('Error fetching calendar image: ', event);
|
|
||||||
errorModal.style.display = '';
|
errorModal.style.display = '';
|
||||||
const message = errorModal.querySelector('.modal-message')!;
|
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() {
|
function refresh() {
|
||||||
|
Loading…
Reference in New Issue
Block a user