8000 ref: Revert the usage of globalThis for getGlobalObject util (#2851) · ebeloded/sentry-javascript@ceb1d1b · GitHub
[go: up one dir, main page]

Skip to content

Commit ceb1d1b

Browse files
authored
ref: Revert the usage of globalThis for getGlobalObject util (getsentry#2851)
1 parent 4f75e8f commit ceb1d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/misc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ const fallbackGlobalObject = {};
4848
*
4949
* @returns Global scope object
5050
*/
51-
export function getGlobalObject<T>(): T & typeof globalThis & SentryGlobal {
51+
export function getGlobalObject<T>(): T & SentryGlobal {
5252
return (isNodeEnv()
5353
? global
5454
: typeof window !== 'undefined'
5555
? window
5656
: typeof self !== 'undefined'
5757
? self
58-
: fallbackGlobalObject) as T & typeof globalThis & SentryGlobal;
58+
: fallbackGlobalObject) as T & SentryGlobal;
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)
0