@bobfrankston/rmfmail 1.1.18 → 1.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4072,8 +4072,14 @@ async function renderTasks() {
4072
4072
  async function refresh() {
4073
4073
  renderHead();
4074
4074
  const from = new Date(viewYear, viewMonth, viewDay);
4075
- lastEvents = await fetchUpcoming(from);
4076
- renderEvents(lastEvents);
4075
+ try {
4076
+ lastEvents = await fetchUpcoming(from);
4077
+ renderEvents(lastEvents);
4078
+ } catch (e) {
4079
+ const body = document.getElementById("cal-side-body");
4080
+ if (body)
4081
+ body.innerHTML = `<div class="cal-side-empty cal-side-quota-error">Couldn't load calendar: ${escapeHtml4(e?.message || String(e))}</div>`;
4082
+ }
4077
4083
  renderTasks();
4078
4084
  }
4079
4085
  function openNewEventDialog() {