MCPcopy Create free account
hub / github.com/code100x/daily-code / closeWindow

Function closeWindow

apps/web/components/Print.tsx:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected