MCPcopy
hub / github.com/mailvelope/mailvelope / init

Function init

src/components/auth-domain/authDomainRoot.js:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13l10n.mapToLocal();
14
15function init() {
16 const query = new URLSearchParams(document.location.search);
17 // component id
18 const id = query.get('id') || '';
19 // component used as a container (client API)
20 const root = document.createElement('div');
21 ReactDOM.render(<AuthDomain id={id} />, document.body.appendChild(root));
22}

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected