MCPcopy Index your code
hub / github.com/github/docs / initPrintEvent

Function initPrintEvent

components/lib/events.ts:312–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310}
311
312function initPrintEvent() {
313 window.addEventListener('beforeprint', () => {
314 sendEvent({ type: EventType.print })
315 })
316}
317
318export function initializeEvents() {
319 if (initialized) return

Callers 1

initializeEventsFunction · 0.85

Calls 1

sendEventFunction · 0.85

Tested by

no test coverage detected