Skip to content

Commit

Permalink
fix: document checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bgarciaoliveira committed Oct 21, 2024
1 parent 8c3228a commit dd345ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CSSSelectorGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class CSSSelectorGenerator {
*/
constructor(options?: Partial<Options>) {
const defaultOptions: Options = {
root: document?.body ?? undefined,
root: document?.body || undefined,
htmlContent: undefined,
idName: () => true,
className: () => true,
Expand Down
2 changes: 1 addition & 1 deletion src/XPathSelectorGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class XPathSelectorGenerator {
*/
constructor(options?: Partial<Options>) {
const defaultOptions: Options = {
root: document?.body ?? undefined,
root: document?.body || undefined,
htmlContent: undefined,
idName: () => true,
className: () => true,
Expand Down

0 comments on commit dd345ee

Please sign in to comment.