@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.
- package/client/app.bundle.js +16 -1
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +23 -2
- package/client/app.js.map +1 -1
- package/client/app.ts +17 -2
- package/client/lib/mailxapi.js +54 -12
- package/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-58140 → node_modules.npmglobalize-stash-57760}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -10611,8 +10611,23 @@ optAutomarkDelay?.addEventListener("change", () => {
|
|
|
10611
10611
|
}
|
|
10612
10612
|
});
|
|
10613
10613
|
var isApp = typeof mailxapi !== "undefined" && mailxapi?.isApp;
|
|
10614
|
-
|
|
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}]` : "";
|