]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: pbs paperkey: cleanup iframe for printing after window close
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 Mar 2023 09:48:32 +0000 (10:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 Mar 2023 09:48:35 +0000 (10:48 +0100)
Reported-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/storage/PBSEdit.js

index 5b6b6bb8301ff99eca9b2e2f15cdbb1c29ef5c76..70dc42f5786f663fa7f2a29bcc14c56532ee565e 100644 (file)
@@ -181,6 +181,7 @@ ${prettifiedKey}
 
        printFrame.src = "data:text/html;base64," + btoa(html);
        document.body.appendChild(printFrame);
+       me.on('destroy', () => document.body.removeChild(printFrame));
     },
 });