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

Method fire

client/scripts/network.js:509–511  ·  view source on GitHub ↗
(type, detail)

Source from the content-addressed store, hash-verified

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);

Callers 15

_onMessageMethod · 0.80
_onDisconnectMethod · 0.80
_onDownloadProgressMethod · 0.80
_onFileReceivedMethod · 0.80
_onTransferCompletedMethod · 0.80
_onTextReceivedMethod · 0.80
_onPasteMethod · 0.80
_onFilesSelectedMethod · 0.80
_onDropMethod · 0.80
_onRightClickMethod · 0.80
_onTouchEndMethod · 0.80
_sendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected