]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
tfa: paperkey: cleanup iframes for printing after window close
authorAaron Lauterer <a.lauterer@proxmox.com>
Mon, 3 Apr 2023 12:28:49 +0000 (14:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 May 2023 17:40:02 +0000 (19:40 +0200)
similar as recently done for the PBS storage add/edit window in
pve-manager

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
[ TL: refer to same change as done in pve-manager ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/window/AddTfaRecovery.js

index 174d5537dc856d5e8353ed33bb0f00de2fa8b90e..dba4454cb9e5e7b5afca72af5867746cd5213022 100644 (file)
@@ -220,5 +220,6 @@ ${keyString}
 
        printFrame.src = "data:text/html;base64," + btoa(html);
        document.body.appendChild(printFrame);
+       me.on('destroy', () => document.body.removeChild(printFrame));
     },
 });