mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-28 00:01:19 +00:00
The overlay-and-clone trick was only set up from the Print button click handler, so pressing Ctrl+P / Cmd+P or choosing Print from the browser menu bypassed it and produced a blank page. Move the overlay creation into a beforeprint listener attached while the viewer is mounted, so every print trigger — shortcut, menu, or button — goes through the same cloning path. afterprint cleans up on both successful prints and cancellations.