MCPcopy
hub / github.com/mailvelope/mailvelope / getTargetOrigin

Function getTargetOrigin

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

Source from the content-addressed store, hash-verified

749}
750
751function getTargetOrigin() {
752 const origin = window.location.origin;
753 // Dev mode: Use wildcard for file protocol, otherwise use normal origin
754 if (typeof __DEV_MODE__ !== 'undefined' && __DEV_MODE__ && origin === 'file://') {
755 return '*';
756 }
757 return origin;
758}
759
760function emit(event, data) {
761 checkConnection();

Callers 2

emitFunction · 0.70
sendFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected