@bobfrankston/rmfmail 1.2.166 → 1.2.167

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.
@@ -7377,7 +7377,23 @@ async function loadFolderTree(container) {
7377
7377
  }
7378
7378
  }).catch(() => {
7379
7379
  });
7380
+ const DEVICE_ACCTS_TIMEOUT_MS = 5e3;
7381
+ let deviceAcctsResolved = false;
7382
+ setTimeout(() => {
7383
+ if (deviceAcctsResolved)
7384
+ return;
7385
+ const p = document.getElementById("setup-device-accounts");
7386
+ if (p)
7387
+ p.innerHTML = "";
7388
+ const f = document.getElementById("setup-form");
7389
+ const i = document.getElementById("setup-form-intro");
7390
+ if (f)
7391
+ f.style.display = "block";
7392
+ if (i)
7393
+ i.textContent = "Add your email account to get started.";
7394
+ }, DEVICE_ACCTS_TIMEOUT_MS);
7380
7395
  getDeviceAccounts().then(async (deviceAccounts) => {
7396
+ deviceAcctsResolved = true;
7381
7397
  const pickerEl = document.getElementById("setup-device-accounts");
7382
7398
  if (!pickerEl)
7383
7399
  return;
@@ -7430,6 +7446,7 @@ async function loadFolderTree(container) {
7430
7446
  introEl.textContent = "Add your email account to get started.";
7431
7447
  });
7432
7448
  }).catch(() => {
7449
+ deviceAcctsResolved = true;
7433
7450
  const p = document.getElementById("setup-device-accounts");
7434
7451
  if (p)
7435
7452
  p.innerHTML = "";