MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / constructor

Method constructor

src/lib/EventHandler.js:23–29  ·  view source on GitHub ↗
(port, handlers)

Source from the content-addressed store, hash-verified

21 #disconnectListener = [];
22
23 constructor(port, handlers) {
24 if (port) {
25 this.initPort(port);
26 }
27 this._handlers = handlers || new Map();
28 this._handlerObject = null;
29 }
30
31 /**
32 * Open port to background script

Callers

nothing calls this directly

Calls 1

initPortMethod · 0.95

Tested by

no test coverage detected