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

Method constructor

src/controller/pwd.controller.js:16–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15export default class PwdController extends SubController {
16 constructor() {
17 super();
18 this.persistent = true;
19 this.mainType = 'pwdDialog';
20 this.id = getUUID();
21 this.queue = new PromiseQueue();
22 this.pwdPopup = null;
23 this.receivedPortMsg = false;
24 this.options = null;
25 this.passwordRequest = null;
26 // register event handlers
27 this.on('pwd-dialog-init', this.onPwdDialogInit);
28 this.on('pwd-dialog-cancel', this.onCancel);
29 this.on('pwd-dialog-ok', this.onOk);
30 this.on('pwd-user-input', msg => uiLog.push(msg.source, msg.type));
31 }
32
33 async onPwdDialogInit() {
34 // pass over keyId and userId to dialog

Callers

nothing calls this directly

Calls 3

getUUIDFunction · 0.90
onMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected