Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
aendra-rininsland committed Apr 26, 2024
1 parent a43011a commit 08c233b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/o-tooltip/src/js/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class Tooltip {
Tooltip.throwError("tooltip.target is not set. An target for the tooltip to point at must be provided");
}

if (!typeof opts.target === 'string' || !opts.target instanceof HTMLElement) {
if (!(typeof opts.target === 'string') && !(opts.target instanceof HTMLElement)) {
Tooltip.throwError("tooltip.target is invalid, it must be either an ID selector string or HTMLElement");
}

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08c233b

Please sign in to comment.