Skip to content

Commit

Permalink
Add validation to ensure className is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
edbrdi authored and kamranahmedse committed Aug 4, 2023
1 parent 02cf8cb commit 288c7de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/popover.ts
Expand Up @@ -204,6 +204,7 @@ export function renderPopover(element: Element, step: DriveStep) {
return (
!popover?.description.contains(target) &&
!popover?.title.contains(target) &&
typeof target.className === 'string' &&
target.className.includes("driver-popover")
);
}
Expand Down

0 comments on commit 288c7de

Please sign in to comment.