Revert "Fixed: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'"

It breaks history in every edit popup window :(

This reverts commit 044189a2ed.
This commit is contained in:
ralf 2024-08-09 11:18:03 +02:00
parent 59a1836842
commit f66e72f1d0

View File

@ -349,7 +349,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode
{
// Find the tab by DOM heritage
// @ts-ignore
if( (typeof this.div[0] === 'Node' || typeof this === 'Node') && tabbox.tabData[i].contentDiv?.contains(this.div[0] || this))
if(tabbox.tabData[i].contentDiv?.contains(this.div[0] || this))
{
return tabbox.tabData[i];
}