@bobfrankston/rmfmail 1.1.139 → 1.1.140
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 +14 -2
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +25 -7
- package/client/app.js.map +1 -1
- package/client/app.ts +18 -7
- package/client/compose/compose.bundle.js +14 -7
- package/client/compose/compose.bundle.js.map +2 -2
- package/client/compose/compose.js +25 -9
- package/client/compose/compose.js.map +1 -1
- package/client/compose/compose.ts +22 -7
- package/package.json +3 -3
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-37416 → node_modules.npmglobalize-stash-43144}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -7292,9 +7292,21 @@ async function openCompose(mode, overrideMsg, overrideAccountId) {
|
|
|
7292
7292
|
init.bodyHtml = forwardBody(msg);
|
|
7293
7293
|
init.fromAddress = detectReplyFrom();
|
|
7294
7294
|
}
|
|
7295
|
-
|
|
7295
|
+
const initJson = JSON.stringify(init);
|
|
7296
7296
|
try {
|
|
7297
|
-
|
|
7297
|
+
sessionStorage.setItem("composeInit", initJson);
|
|
7298
|
+
} catch (e) {
|
|
7299
|
+
console.error("[compose] sessionStorage.setItem failed:", e?.message || e);
|
|
7300
|
+
}
|
|
7301
|
+
const post = () => {
|
|
7302
|
+
try {
|
|
7303
|
+
frame?.contentWindow?.postMessage({ type: "compose-init", init }, "*");
|
|
7304
|
+
} catch {
|
|
7305
|
+
}
|
|
7306
|
+
};
|
|
7307
|
+
post();
|
|
7308
|
+
try {
|
|
7309
|
+
frame?.addEventListener("load", post, { once: true });
|
|
7298
7310
|
} catch {
|
|
7299
7311
|
}
|
|
7300
7312
|
}
|