ipad: Clean up error messages on image failure
This commit is contained in:
parent
1151378708
commit
b3218d795f
@ -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