* Displays the alert message in the toast.
(msg: string)
| 611 | * Displays the alert message in the toast. |
| 612 | */ |
| 613 | function alertMessage(msg: string) { |
| 614 | const snackbarContainer = document.getElementById( |
| 615 | 'quickstart-snackbar', |
| 616 | )! as HTMLDivElement; |
| 617 | const data = { |
| 618 | message: msg, |
| 619 | }; |
| 620 | // MaterialSnackbar comes from the MDL library |
| 621 | (snackbarContainer as any).MaterialSnackbar.showSnackbar(data); |
| 622 | } |
| 623 | |
| 624 | // Listening for Auth state changes. |
| 625 | onAuthStateChanged(auth, function (user) { |
no outgoing calls
no test coverage detected