MCPcopy
hub / github.com/mailvelope/mailvelope / getRecipients

Method getRecipients

src/content-scripts/providerSpecific.js:93–95  ·  view source on GitHub ↗

* Parse recipients from the Gmail Webmail interface * @return {Promise. } The recipient objects in the form { email: 'jon@example.com' }

(editElement)

Source from the content-addressed store, hash-verified

91 * @return {Promise.<Array>} The recipient objects in the form { email: 'jon@example.com' }
92 */
93 async getRecipients(editElement) {
94 return getAttr(editElement.closest('.I5').querySelectorAll('.agb .afV[data-hovercard-id]'), 'data-hovercard-id');
95 }
96
97 /**
98 * Set the recipients in the Gmail Webmail editor.

Callers 3

showMailEditorMethod · 0.45

Calls 1

getAttrFunction · 0.85

Tested by

no test coverage detected