adtec-core-package 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -105,9 +105,11 @@ function hasParentWithStyle(element: any, styleSelector: string) {
|
|
|
105
105
|
let i = 0
|
|
106
106
|
while (currentElement && i < 15) {
|
|
107
107
|
if (currentElement?.tagName !== 'BODY') {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
try {
|
|
109
|
+
if (currentElement.className?.indexOf(styleSelector) > -1) {
|
|
110
|
+
return true
|
|
111
|
+
}
|
|
112
|
+
}catch{}
|
|
111
113
|
currentElement = currentElement.parentNode
|
|
112
114
|
i++
|
|
113
115
|
} else {
|