Skip to content

Commit fea6e2a

Browse files
authored
use typeof globalThis
1 parent 692e782 commit fea6e2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-aria/utils/src/domHelpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ export const getOwnerDocument = (el: Element | null | undefined): Document => {
33
};
44

55
export const getOwnerWindow = (
6-
el: (Window & typeof global) | Element | null | undefined
7-
): Window & typeof global => {
6+
el: (Window & typeof globalThis) | Element | null | undefined
7+
): Window & typeof globalThis => {
88
if (el && 'window' in el && el.window === el) {
99
return el;
1010
}

0 commit comments

Comments
 (0)