Skip to content

Commit

Permalink
fix: use globalThis instead of global (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Apr 16, 2022
1 parent 7bca74c commit 497c14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options.ts
Expand Up @@ -55,7 +55,7 @@ export interface Options {
* This defaults to the owner document of an element if an API is called directly with an element and without setup.
* Otherwise it falls back to the global document.
*
* @default element.ownerDocument??global.document
* @default element.ownerDocument??globalThis.document
*/
document?: Document

Expand Down Expand Up @@ -136,7 +136,7 @@ export const defaultOptionsDirect: Required<Options> = {
applyAccept: true,
autoModify: true,
delay: 0,
document: global.document,
document: globalThis.document,
keyboardMap: defaultKeyboardMap,
pointerMap: defaultPointerMap,
pointerEventsCheck: PointerEventsCheckLevel.EachApiCall,
Expand Down

0 comments on commit 497c14d

Please sign in to comment.