@bobfrankston/rmfmail 1.2.260 → 1.2.261

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.
@@ -2236,6 +2236,9 @@ function installPreviewControls(iframe) {
2236
2236
  const doc = iframe.contentDocument;
2237
2237
  if (!doc)
2238
2238
  return;
2239
+ if (doc.__mvControlsBound)
2240
+ return;
2241
+ doc.__mvControlsBound = true;
2239
2242
  applyZoom(doc);
2240
2243
  refreshSearchHighlight(iframe, true);
2241
2244
  doc.addEventListener("keydown", (e) => {
@@ -2280,10 +2283,9 @@ function installPreviewControls(iframe) {
2280
2283
  setZoom(previewZoom + (e.deltaY < 0 ? ZOOM_STEP : -ZOOM_STEP), doc);
2281
2284
  }, { passive: false });
2282
2285
  };
2286
+ iframe.addEventListener("load", attach);
2283
2287
  if (iframe.contentDocument?.readyState === "complete")
2284
2288
  attach();
2285
- else
2286
- iframe.addEventListener("load", attach, { once: true });
2287
2289
  queueMicrotask(() => {
2288
2290
  const doc = iframe.contentDocument;
2289
2291
  if (!doc)