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

Method initMainPort

src/controller/sub.controller.js:27–33  ·  view source on GitHub ↗
(port, eventCache)

Source from the content-addressed store, hash-verified

25 }
26
27 initMainPort(port, eventCache) {
28 const sender = parseViewName(port.name);
29 this.mainType = sender.type;
30 this.id = sender.id;
31 this.ports[this.mainType] = this;
32 eventCache?.flush(this);
33 }
34
35 addPort(port, eventCache) {
36 const {type} = parseViewName(port.name);

Callers 2

constructorMethod · 0.95
addPortMethod · 0.95

Calls 2

parseViewNameFunction · 0.90
flushMethod · 0.80

Tested by

no test coverage detected