ui: pbs paperkey: cleanup iframe for printing after window close

Reported-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-03-13 10:48:32 +01:00
parent d232c409f6
commit faaae2a2bb

View 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));
},
});