MCPcopy
hub / github.com/mailvelope/mailvelope / emit

Function emit

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

Source from the content-addressed store, hash-verified

758}
759
760function emit(event, data) {
761 checkConnection();
762 const message = {...data, event, mvelo_client: true};
763 const targetOrigin = getTargetOrigin();
764 window.postMessage(message, targetOrigin);
765}
766
767function send(event, data) {
768 checkConnection();

Callers 2

generateMethod · 0.70
handleSyncEventFunction · 0.70

Calls 3

checkConnectionFunction · 0.85
getTargetOriginFunction · 0.70
postMessageMethod · 0.45

Tested by

no test coverage detected