MCPcopy Index your code
hub / github.com/firebase/quickstart-js / hideElement

Function hideElement

auth/mfa-password.ts:584–589  ·  view source on GitHub ↗

* Hides the element by ID. * @param {string} elementId The ID of the element.

(elementId: string)

Source from the content-addressed store, hash-verified

582 * @param {string} elementId The ID of the element.
583 */
584function hideElement(elementId: string) {
585 const element = document.getElementById(elementId);
586 if (element) {
587 element.style.display = 'none';
588 }
589}
590
591/**
592 * Alerts the error message in the toast and logs the error in the console.

Callers 1

updateMfaDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected