MCPcopy Create free account
hub / github.com/firebase/codelab-friendlychat-web / deleteMessage

Function deleteMessage

web/src/index.js:304–310  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

302
303 // Delete a Message from the UI.
304 function deleteMessage(id) {
305 var div = document.getElementById(id);
306 // If an element for that message exists we delete it.
307 if (div) {
308 div.parentNode.removeChild(div);
309 }
310 }
311
312 function createAndInsertMessage(id, timestamp) {
313 const container = document.createElement('div');

Callers 1

loadMessagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected