@bobfrankston/rmfmail 1.1.188 → 1.1.189
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 +4 -4
- package/client/app.bundle.js.map +2 -2
- package/client/app.js +10 -5
- package/client/app.js.map +1 -1
- package/client/app.ts +10 -5
- package/client/lib/mailxapi.js +18 -0
- package/package.json +3 -3
- package/packages/mailx-imap/index.d.ts.map +1 -1
- package/packages/mailx-imap/index.js +11 -0
- package/packages/mailx-imap/index.js.map +1 -1
- package/packages/mailx-imap/index.ts +11 -0
- package/packages/mailx-imap/package-lock.json +2 -2
- package/packages/mailx-imap/package.json +1 -1
- /package/packages/mailx-imap/{node_modules.npmglobalize-stash-35552 → node_modules.npmglobalize-stash-4032}/.package-lock.json +0 -0
package/client/app.bundle.js
CHANGED
|
@@ -6941,13 +6941,13 @@ function updateBadge(count) {
|
|
|
6941
6941
|
const dataUrl = canvas.toDataURL("image/png");
|
|
6942
6942
|
link.href = dataUrl;
|
|
6943
6943
|
try {
|
|
6944
|
-
const
|
|
6945
|
-
if (
|
|
6944
|
+
const hostApi = window.mailxapi;
|
|
6945
|
+
if (hostApi?.setTaskbarOverlay) {
|
|
6946
6946
|
if (count > 0) {
|
|
6947
6947
|
const b64 = dataUrl.split(",")[1] || "";
|
|
6948
|
-
|
|
6948
|
+
hostApi.setTaskbarOverlay(b64, `${count} unread`);
|
|
6949
6949
|
} else {
|
|
6950
|
-
|
|
6950
|
+
hostApi.setTaskbarOverlay("", "");
|
|
6951
6951
|
}
|
|
6952
6952
|
}
|
|
6953
6953
|
} catch {
|