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

Function init

src/components/enter-password/passwordDialogRoot.js:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18l10n.mapToLocal();
19
20function init() {
21 const query = new URLSearchParams(document.location.search);
22 // component id
23 const id = query.get('id') || '';
24 addDocumentTitle(`Mailvelope - ${l10n.map.pwd_dialog_header}`);
25 // component used as a container (client API)
26 const root = document.createElement('div');
27 ReactDOM.render(<PasswordDialog id={id} />, document.body.appendChild(root));
28}

Callers

nothing calls this directly

Calls 3

addDocumentTitleFunction · 0.90
getMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected