We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typeof globalThis
1 parent 692e782 commit fea6e2aCopy full SHA for fea6e2a
packages/@react-aria/utils/src/domHelpers.ts
@@ -3,8 +3,8 @@ export const getOwnerDocument = (el: Element | null | undefined): Document => {
3
};
4
5
export const getOwnerWindow = (
6
- el: (Window & typeof global) | Element | null | undefined
7
-): Window & typeof global => {
+ el: (Window & typeof globalThis) | Element | null | undefined
+): Window & typeof globalThis => {
8
if (el && 'window' in el && el.window === el) {
9
return el;
10
}
0 commit comments