@bobfrankston/rmfmail 1.1.187 → 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.
@@ -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 msgapi = window.msgapi;
6945
- if (msgapi?.setTaskbarOverlay) {
6944
+ const hostApi = window.mailxapi;
6945
+ if (hostApi?.setTaskbarOverlay) {
6946
6946
  if (count > 0) {
6947
6947
  const b64 = dataUrl.split(",")[1] || "";
6948
- msgapi.setTaskbarOverlay(b64, `${count} unread`);
6948
+ hostApi.setTaskbarOverlay(b64, `${count} unread`);
6949
6949
  } else {
6950
- msgapi.setTaskbarOverlay("", "");
6950
+ hostApi.setTaskbarOverlay("", "");
6951
6951
  }
6952
6952
  }
6953
6953
  } catch {