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

Method constructor

src/content-scripts/syncHandler.js:15–20  ·  view source on GitHub ↗

* @param {string} keyringId - the keyring to use for this operation * @constructor

(keyringId)

Source from the content-addressed store, hash-verified

13 * @constructor
14 */
15 constructor(keyringId) {
16 this.keyringId = keyringId;
17 this.id = getUUID();
18 this.port = EventHandler.connect(`syncHandler-${this.id}`, this);
19 this.registerEventListener();
20 }
21
22 onConnect() {
23 this.port.emit('init', {keyringId: this.keyringId});

Callers

nothing calls this directly

Calls 3

registerEventListenerMethod · 0.95
getUUIDFunction · 0.90
connectMethod · 0.45

Tested by

no test coverage detected