@bobfrankston/rmfmail 1.2.114 → 1.2.115

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.
@@ -5083,10 +5083,15 @@ document.getElementById("btn-attach")?.addEventListener("click", () => {
5083
5083
  var wordEditId = null;
5084
5084
  var extEditHintClose = null;
5085
5085
  {
5086
- const isAndroid = window.mailxapi?.platform === "android" || window.parent?.mailxapi?.platform === "android";
5086
+ let parentPlatform;
5087
+ try {
5088
+ parentPlatform = window.parent?.mailxapi?.platform;
5089
+ } catch {
5090
+ }
5091
+ const isAndroid = /Android/i.test(navigator.userAgent) || window.mailxapi?.platform === "android" || parentPlatform === "android";
5087
5092
  if (isAndroid) {
5088
5093
  const btn = document.getElementById("btn-edit-in-word");
5089
- if (btn) btn.hidden = true;
5094
+ if (btn) btn.style.display = "none";
5090
5095
  }
5091
5096
  }
5092
5097
  document.getElementById("btn-edit-in-word")?.addEventListener("click", async () => {