Skip to content

Commit

Permalink
fix: an error when a library is referenced outside of a window context (
Browse files Browse the repository at this point in the history
  • Loading branch information
1natsu172 authored Dec 7, 2024
1 parent 775e344 commit 5b0b6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export type DefaultOptions<QuerySelectorResult extends QuerySelectorReturn> =
export const getDefaultOptions = <
QuerySelectorResult extends QuerySelectorReturn = QuerySelectorReturn,
>(): DefaultOptions<QuerySelectorResult> => ({
target: document,
target: globalThis.document,
unifyProcess: true,
detector: isExist,
observeConfigs: {
Expand Down

0 comments on commit 5b0b6e1

Please sign in to comment.