Skip to content

Commit 35cb049

Browse files
committed
fix: use globalThis instead of global for browser support
1 parent ef826a4 commit 35cb049

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)