[pve-devel] [PATCH widget-toolkit] tfa: paperkey: cleanup iframes for printing after window close
    Aaron Lauterer 
    a.lauterer at proxmox.com
       
    Mon Apr  3 14:28:49 CEST 2023
    
    
  
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
similar as in
https://git.proxmox.com/?p=pve-manager.git;a=commitdiff;h=b380cb5814ec551588dfcbd6c5ed190f01d54029
 src/window/AddTfaRecovery.js | 1 +
 1 file changed, 1 insertion(+)
diff --git a/src/window/AddTfaRecovery.js b/src/window/AddTfaRecovery.js
index 174d553..dba4454 100644
--- a/src/window/AddTfaRecovery.js
+++ b/src/window/AddTfaRecovery.js
@@ -220,5 +220,6 @@ ${keyString}
 
 	printFrame.src = "data:text/html;base64," + btoa(html);
 	document.body.appendChild(printFrame);
+	me.on('destroy', () => document.body.removeChild(printFrame));
     },
 });
-- 
2.30.2
    
    
More information about the pve-devel
mailing list