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

Method constructor

src/controller/sub.controller.js:15–25  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

13
14export class SubController extends EventHandler {
15 constructor(port) {
16 super(port);
17 this.ports = {};
18 this.peers = {};
19 if (port) {
20 this.initMainPort(port);
21 }
22 this.on('open-security-settings', this.openSecuritySettings);
23 this.on('get-security-background', this.getSecurityBackground);
24 this.on('security-background-update', this.updateSecurityBackground);
25 }
26
27 initMainPort(port, eventCache) {
28 const sender = parseViewName(port.name);

Callers

nothing calls this directly

Calls 2

initMainPortMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected