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

Function deleteMessage

appcheck/hosting/src/index.js:321–327  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

319
320 // Delete a Message from the UI.
321 function deleteMessage(id) {
322 var div = document.getElementById(id);
323 // If an element for that message exists we delete it.
324 if (div) {
325 div.parentNode.removeChild(div);
326 }
327 }
328
329 function createAndInsertMessage(id, timestamp) {
330 const container = document.createElement('div');

Callers 1

loadMessagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected