Skip to content

Commit 497c14d

Browse files
authored
fix: use globalThis instead of global (#928)
1 parent 7bca74c commit 497c14d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface Options {
5555
* This defaults to the owner document of an element if an API is called directly with an element and without setup.
5656
* Otherwise it falls back to the global document.
5757
*
58-
* @default element.ownerDocument??global.document
58+
* @default element.ownerDocument??globalThis.document
5959
*/
6060
document?: Document
6161

@@ -136,7 +136,7 @@ export const defaultOptionsDirect: Required<Options> = {
136136
applyAccept: true,
137137
autoModify: true,
138138
delay: 0,
139-
document: global.document,
139+
document: globalThis.document,
140140
keyboardMap: defaultKeyboardMap,
141141
pointerMap: defaultPointerMap,
142142
pointerEventsCheck: PointerEventsCheckLevel.EachApiCall,

0 commit comments

Comments
 (0)