We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
globalThis
global
1 parent 7bca74c commit 497c14dCopy full SHA for 497c14d
1 file changed
src/options.ts
@@ -55,7 +55,7 @@ export interface Options {
55
* This defaults to the owner document of an element if an API is called directly with an element and without setup.
56
* Otherwise it falls back to the global document.
57
*
58
- * @default element.ownerDocument??global.document
+ * @default element.ownerDocument??globalThis.document
59
*/
60
document?: Document
61
@@ -136,7 +136,7 @@ export const defaultOptionsDirect: Required<Options> = {
136
applyAccept: true,
137
autoModify: true,
138
delay: 0,
139
- document: global.document,
+ document: globalThis.document,
140
keyboardMap: defaultKeyboardMap,
141
pointerMap: defaultPointerMap,
142
pointerEventsCheck: PointerEventsCheckLevel.EachApiCall,
0 commit comments