MCPcopy Create free account
hub / github.com/SnapDrop/snapdrop / Events

Class Events

client/scripts/network.js:508–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508class Events {
509 static fire(type, detail) {
510 window.dispatchEvent(new CustomEvent(type, { detail: detail }));
511 }
512
513 static on(type, callback) {
514 return window.addEventListener(type, callback, false);
515 }
516
517 static off(type, callback) {
518 return window.removeEventListener(type, callback, false);
519 }
520}
521
522
523RTCPeer.config = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected