File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/core/src/browser Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 11import { display } from '../tools/display'
22import { ONE_MINUTE , ONE_SECOND } from '../tools/utils/timeUtils'
33import { findCommaSeparatedValue , findCommaSeparatedValues , generateUUID } from '../tools/utils/stringUtils'
4- import { globalObject } from '../tools/globalObject'
54
65export interface CookieOptions {
76 secure ?: boolean
@@ -47,10 +46,9 @@ export function deleteCookie(name: string, options?: CookieOptions) {
4746}
4847
4948export 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
You can’t perform that action at this time.
0 commit comments