MCPcopy
hub / github.com/SnapDrop/snapdrop / _bind

Method _bind

client/scripts/ui.js:480–488  ·  view source on GitHub ↗
(notification, handler)

Source from the content-addressed store, hash-verified

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

Callers 2

_messageNotificationMethod · 0.95
_downloadNotificationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected