()
| 12 | |
| 13 | |
| 14 | const closeWindow = () => { |
| 15 | console.log("PDF has been printed."); |
| 16 | window.close(); |
| 17 | }; |
| 18 | |
| 19 | // Add event listener for 'afterprint' event |
| 20 | window.addEventListener("afterprint", closeWindow); |
nothing calls this directly
no outgoing calls
no test coverage detected