Skip to content

Commit 4158e7a

Browse files
committed
fix: don't need to clone the node
1 parent 277f681 commit 4158e7a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

js/chat/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ class ChatContainer extends LitElement {
458458
icon = document.createElement("div");
459459
icon.innerHTML = message.icon;
460460
if (icon.firstChild) {
461-
icon = icon.firstChild.cloneNode() as HTMLElement;
461+
icon = icon.firstChild as HTMLElement;
462462
} else {
463463
icon = undefined;
464464
}

shiny/www/py-shiny/chat/chat.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shiny/www/py-shiny/chat/chat.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)