MCPcopy
hub / github.com/mailvelope/mailvelope / checkConnection

Function checkConnection

src/client-API/client-api.js:743–749  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

741}
742
743function checkConnection() {
744 if (!connected) {
745 const error = new Error('Connection to Mailvelope extension is no longer alive.');
746 error.code = 'NO_CONNECTION';
747 throw error;
748 }
749}
750
751function getTargetOrigin() {
752 const origin = window.location.origin;

Callers 2

emitFunction · 0.85
sendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected