MCPcopy Create free account
hub / github.com/GoogleChrome/samples / addMessage

Function addMessage

presentation-api/receiver/receiver.js:42–49  ·  view source on GitHub ↗
(content, language)

Source from the content-addressed store, hash-verified

40};
41
42function addMessage(content, language) {
43 const listItem = document.createElement("li");
44 if (language) {
45 listItem.lang = language;
46 }
47 listItem.textContent = content;
48 document.querySelector("#message-list").appendChild(listItem);
49};
50
51function maybeSetFruit(message) {
52 const fruit = message.toLowerCase();

Callers 1

addConnectionFunction · 0.85

Calls 1

createElementMethod · 0.80

Tested by

no test coverage detected