MCPcopy
hub / github.com/angular/angular / onClick

Method onClick

packages/service-worker/worker/src/driver.ts:341–344  ·  view source on GitHub ↗
(event: NotificationEvent)

Source from the content-addressed store, hash-verified

339 }
340
341 private onClick(event: NotificationEvent): void {
342 // Handle the click event and keep the SW alive until it's handled.
343 event.waitUntil(this.handleClick(event.notification, event.action));
344 }
345
346 private onClose(event: NotificationEvent): void {
347 // Handle the close event and keep the SW alive until it's handled.

Callers 1

constructorMethod · 0.95

Calls 2

handleClickMethod · 0.95
waitUntilMethod · 0.80

Tested by

no test coverage detected