MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / init

Function init

src/components/decrypt-message/decryptMessageRoot.js:18–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16l10n.mapToLocal();
17
18function init() {
19 const query = new URLSearchParams(document.location.search);
20 // component id
21 const id = query.get('id') || '';
22 // component used as a container (client API)
23 const embedded = str2bool(query.get('embedded') || false);
24 const root = document.createElement('div');
25 ReactDOM.render(<DecryptMessage id={id} embedded={embedded} />, document.body.appendChild(root));
26}

Callers

nothing calls this directly

Calls 2

str2boolFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected