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

Method constructor

src/content-scripts/keyGenContainer.js:16–25  ·  view source on GitHub ↗

* @param {CssSelector} selector - target container * @param {string} keyringId - the keyring to use for this operation * @param {object} options * @constructor

(selector, keyringId, options)

Source from the content-addressed store, hash-verified

14 * @constructor
15 */
16 constructor(selector, keyringId, options) {
17 this.selector = selector;
18 this.keyringId = keyringId;
19 this.options = options;
20 this.id = getUUID();
21 this.port = EventHandler.connect(`keyGenCont-${this.id}`, this);
22 this.registerEventListener();
23 this.parent = null;
24 this.container = null;
25 }
26
27 /**
28 * Create an iframe

Callers

nothing calls this directly

Calls 3

registerEventListenerMethod · 0.95
getUUIDFunction · 0.90
connectMethod · 0.45

Tested by

no test coverage detected