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

Method constructor

src/controller/verify.controller.js:14–25  ·  view source on GitHub ↗
(port)

Source from the content-addressed store, hash-verified

12
13export default class VerifyController extends SubController {
14 constructor(port) {
15 super(port);
16 this.verifyPopup = null;
17 this.armored = null;
18 // register event handlers
19 this.on('decrypt-message-init', this.onVerifyInit);
20 this.on('decrypt-message', () => this.onArmoredMessage({data: this.armored}));
21 this.on('decrypt-dialog-cancel', this.onCancel);
22 this.on('decrypt-inline-user-input', msg => uiLog.push(msg.source, msg.type));
23 this.on('vframe-display-popup', this.onDisplayPopup);
24 this.on('vframe-armored-message', this.onArmoredMessage);
25 }
26
27 async onVerifyInit() {
28 this.keyringId = await getPreferredKeyringId();

Callers

nothing calls this directly

Calls 3

onArmoredMessageMethod · 0.95
onMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected