(notification, handler)
| 478 | } |
| 479 | |
| 480 | _bind(notification, handler) { |
| 481 | if (notification.then) { |
| 482 | notification.then(e => serviceWorker.getNotifications().then(notifications => { |
| 483 | serviceWorker.addEventListener('notificationclick', handler); |
| 484 | })); |
| 485 | } else { |
| 486 | notification.onclick = handler; |
| 487 | } |
| 488 | } |
| 489 | } |
| 490 | |
| 491 |
no outgoing calls
no test coverage detected