From 497c14df2c036e4dddd4b18101353531b0238948 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Sat, 16 Apr 2022 12:02:56 +0200 Subject: [PATCH] fix: use `globalThis` instead of `global` (#928) --- src/options.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.ts b/src/options.ts index 1e970b0c..b989f3dd 100644 --- a/src/options.ts +++ b/src/options.ts @@ -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 @@ -136,7 +136,7 @@ export const defaultOptionsDirect: Required = { applyAccept: true, autoModify: true, delay: 0, - document: global.document, + document: globalThis.document, keyboardMap: defaultKeyboardMap, pointerMap: defaultPointerMap, pointerEventsCheck: PointerEventsCheckLevel.EachApiCall,