MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / constructor

Method constructor

src/content-scripts/editorContainer.js:12–21  ·  view source on GitHub ↗
(selector, keyringId, options)

Source from the content-addressed store, hash-verified

10
11export default class EditorContainer {
12 constructor(selector, keyringId, options) {
13 this.selector = selector;
14 this.keyringId = keyringId;
15 this.options = options;
16 this.id = getUUID();
17 this.port = EventHandler.connect(`editorCont-${this.id}`, this);
18 this.registerEventListener();
19 this.parent = null;
20 this.container = null;
21 }
22
23 create() {
24 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 3

registerEventListenerMethod · 0.95
getUUIDFunction · 0.90
connectMethod · 0.45

Tested by

no test coverage detected