Skip to content

Commit 52cb43d

Browse files
committed
🐛 pr-feedback: remove change in cookies authorized
1 parent f743912 commit 52cb43d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/browser/cookie.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { display } from '../tools/display'
22
import { ONE_MINUTE, ONE_SECOND } from '../tools/utils/timeUtils'
33
import { findCommaSeparatedValue, findCommaSeparatedValues, generateUUID } from '../tools/utils/stringUtils'
4-
import { globalObject } from '../tools/globalObject'
54

65
export interface CookieOptions {
76
secure?: boolean
@@ -47,10 +46,9 @@ export function deleteCookie(name: string, options?: CookieOptions) {
4746
}
4847

4948
export function areCookiesAuthorized(options: CookieOptions): boolean {
50-
if (globalObject.document?.cookie === undefined || globalObject.document?.cookie === null) {
49+
if (document.cookie === undefined || document.cookie === null) {
5150
return false
5251
}
53-
5452
try {
5553
// Use a unique cookie name to avoid issues when the SDK is initialized multiple times during
5654
// the test cookie lifetime

0 commit comments

Comments
 (0)