mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Remove redundant check from js_chat_html_update
This commit is contained in:
parent
0a5259b926
commit
4eb64a3716
@ -17,7 +17,7 @@ clear_arr = ('delete_chat-confirm', 'delete_chat', 'delete_chat-cancel')
|
|||||||
js_chat_html_update = """
|
js_chat_html_update = """
|
||||||
(newHTML) => {
|
(newHTML) => {
|
||||||
function areNodesEqualOrTagsMatch(n1, n2) {
|
function areNodesEqualOrTagsMatch(n1, n2) {
|
||||||
if (!n1 || !n2 || n1.nodeType !== n2.nodeType)
|
if (n1.nodeType !== n2.nodeType)
|
||||||
return false;
|
return false;
|
||||||
if (n1.nodeType !== Node.ELEMENT_NODE)
|
if (n1.nodeType !== Node.ELEMENT_NODE)
|
||||||
return n1.isEqualNode(n2);
|
return n1.isEqualNode(n2);
|
||||||
|
Loading…
Reference in New Issue
Block a user