MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / onOpenEditor

Method onOpenEditor

src/controller/gmail.controller.js:33–42  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

31 }
32
33 async onOpenEditor(options) {
34 await this.createPeer('editorController');
35 if (await this.peers.editorController.getPopup()) {
36 await this.peers.editorController.activateComponent();
37 return;
38 }
39 options.recipientsTo ||= [];
40 options.recipientsCc ||= [];
41 this.openEditor(options);
42 }
43
44 /**
45 * Opens a new editor control and gets the recipients to encrypt plaintext

Callers 1

onSecureBtnMethod · 0.95

Calls 4

openEditorMethod · 0.95
createPeerMethod · 0.80
getPopupMethod · 0.45
activateComponentMethod · 0.45

Tested by

no test coverage detected