MCPcopy
hub / github.com/mailvelope/mailvelope / send

Function send

src/client-API/client-api.js:767–775  ·  view source on GitHub ↗
(event, data)

Source from the content-addressed store, hash-verified

765}
766
767function send(event, data) {
768 checkConnection();
769 return new Promise((resolve, reject) => {
770 const message = {...data, event, mvelo_client: true, _reply: getUUID()};
771 callbacks[message._reply] = (err, data) => err ? reject(err) : resolve(data);
772 const targetOrigin = getTargetOrigin();
773 window.postMessage(message, targetOrigin);
774 });
775}
776
777export function init() {
778 window.mailvelope = new Mailvelope();

Callers 15

getVersionMethod · 0.70
getKeyringMethod · 0.70
createKeyringMethod · 0.70
createEditorContainerMethod · 0.70
validKeyForAddressMethod · 0.70
exportOwnPublicKeyMethod · 0.70
importPublicKeyMethod · 0.70

Calls 5

checkConnectionFunction · 0.85
resolveFunction · 0.85
getUUIDFunction · 0.70
getTargetOriginFunction · 0.70
postMessageMethod · 0.45

Tested by

no test coverage detected