Remove redundant check from js_chat_html_update

This commit is contained in:
Corneliu Zuzu 2024-05-09 14:37:40 +03:00
parent 0a5259b926
commit 4eb64a3716

View File

@ -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);