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

Function initController

src/controller/main.controller.js:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import {initFactory, verifyConnectPermission, createController as createControllerInstance, getControllerClass} from './factory';
9
10export function initController() {
11 initFactory();
12 chrome.runtime.onConnect.addListener(port => {
13 // create controllers for incoming connections by name and id
14 addPort(port);
15 // update active ports on disconnect
16 port.onDisconnect.addListener(removePort);
17 });
18}
19
20class EventCache {
21 constructor(port, addPortSequence) {

Callers 2

test-harness.jsFile · 0.90
mainFunction · 0.90

Calls 2

initFactoryFunction · 0.90
addPortFunction · 0.85

Tested by

no test coverage detected