Eddy Bordi commited on
Commit ·
288c7de
1
Parent(s): 02cf8cb
Add validation to ensure className is a string
Browse files- src/popover.ts +1 -0
src/popover.ts
CHANGED
|
@@ -204,6 +204,7 @@ export function renderPopover(element: Element, step: DriveStep) {
|
|
| 204 |
return (
|
| 205 |
!popover?.description.contains(target) &&
|
| 206 |
!popover?.title.contains(target) &&
|
|
|
|
| 207 |
target.className.includes("driver-popover")
|
| 208 |
);
|
| 209 |
}
|
|
|
|
| 204 |
return (
|
| 205 |
!popover?.description.contains(target) &&
|
| 206 |
!popover?.title.contains(target) &&
|
| 207 |
+
typeof target.className === 'string' &&
|
| 208 |
target.className.includes("driver-popover")
|
| 209 |
);
|
| 210 |
}
|