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

Method constructor

src/content-scripts/decryptContainer.js:10–20  ·  view source on GitHub ↗
(selector, keyringId, options)

Source from the content-addressed store, hash-verified

8
9export default class DecryptContainer {
10 constructor(selector, keyringId, options) {
11 this.selector = selector;
12 this.keyringId = keyringId;
13 this.options = options;
14 this.id = getUUID();
15 this.port = EventHandler.connect(`decryptCont-${this.id}`, this);
16 this.registerEventListener();
17 this.parent = null;
18 this.container = null;
19 this.armored = null;
20 }
21
22 create(armored) {
23 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