(user: User | null)
| 138 | |
| 139 | // This is called when the Firebase auth state has changed. i.e. the User has signed-in or signed-out. |
| 140 | const onAuthStateChangedHandler = function(user: User | null) { |
| 141 | if (user) { |
| 142 | // When a user signs-in we remove the sign-in splash page. |
| 143 | splashPage.style.display = 'none'; |
| 144 | } else { |
| 145 | // Display the splash page where you can sign-in. |
| 146 | splashPage.style.display = ''; |
| 147 | } |
| 148 | }; |
| 149 | |
| 150 | // This is called when a new Message has been added to the realtime Database. |
| 151 | const onNewMessage = function(snap: DataSnapshot) { |
nothing calls this directly
no outgoing calls
no test coverage detected