Skip to content

Commit

Permalink
fix: DOM text reinterpreted as HTML issue in index.ts (#70)
Browse files Browse the repository at this point in the history
Co-authored-by: droak <[email protected]>
  • Loading branch information
JanLewDev and d-roak authored Jul 29, 2024
1 parent 7fed7c6 commit b849b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chat/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function main() {
object["chat"] = Object.assign(new GSet<string>(new Set<string>()), object["chat"]);
chatCRO = Object.assign(new Chat(node.networkNode.peerId), object);

(<HTMLButtonElement>document.getElementById("chatId")).innerHTML = objectId;
(<HTMLButtonElement>document.getElementById("chatId")).innerHTML = chatCRO.getObjectId();
render();
} catch (e) {
console.error("Error while connecting to the CRO ", objectId, e);
Expand Down

0 comments on commit b849b2f

Please sign in to comment.