@bobfrankston/rmfmail 1.1.212 → 1.1.214

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.
@@ -10611,8 +10611,23 @@ optAutomarkDelay?.addEventListener("change", () => {
10611
10611
  }
10612
10612
  });
10613
10613
  var isApp = typeof mailxapi !== "undefined" && mailxapi?.isApp;
10614
- var versionPromise = getVersion();
10614
+ async function getVersionWithRetry(attempts = 5) {
10615
+ for (let i = 0; i < attempts; i++) {
10616
+ try {
10617
+ return await getVersion();
10618
+ } catch (e) {
10619
+ if (i === attempts - 1) {
10620
+ console.warn("getVersion failed after retries:", e);
10621
+ return {};
10622
+ }
10623
+ await new Promise((r) => setTimeout(r, 1500));
10624
+ }
10625
+ }
10626
+ return {};
10627
+ }
10628
+ var versionPromise = getVersionWithRetry();
10615
10629
  versionPromise.then((d) => {
10630
+ if (!d || !d.version) return;
10616
10631
  const els = document.querySelectorAll(".app-version");
10617
10632
  const storage = d.storage || {};
10618
10633
  const storageLabel = storage.provider && storage.provider !== "local" ? ` [${storage.provider}]` : "";