Skip to content

Commit

Permalink
Restore _ym_debug in the COOKIES_WHITELIST
Browse files Browse the repository at this point in the history
8ed48a34efaca30c8cdabd50c351d11cba72c0c5
  • Loading branch information
sabio committed Apr 17, 2024
1 parent 1c26011 commit 05fe65a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/providers/debugConsole/const.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const DEBUG_STORAGE_FLAG = 'debug' as const;
export const DEBUG_CTX_FLAG = `_ym_${DEBUG_STORAGE_FLAG}` as const;
export const DEBUG_URL_PARAM = DEBUG_CTX_FLAG;
export const DEBUG_COOKIE = DEBUG_CTX_FLAG;
4 changes: 2 additions & 2 deletions src/providers/debugConsole/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DEBUG_CONSOLE_FEATURE } from 'generated/features';
import { windowProviderInitializers } from 'src/providersEntrypoint';
import { COOKIES_WHITELIST } from 'src/storage/cookie/isAllowed';
import { useReportNonNativeFunctionProvider } from '../reportNonNativeFunctions';
import { DEBUG_CTX_FLAG, DEBUG_STORAGE_FLAG } from './const';
import { DEBUG_CTX_FLAG, DEBUG_COOKIE } from './const';

declare global {
interface Window {
Expand All @@ -13,7 +13,7 @@ declare global {

export const initProvider = () => {
if (flags[DEBUG_CONSOLE_FEATURE]) {
COOKIES_WHITELIST.push(DEBUG_STORAGE_FLAG);
COOKIES_WHITELIST.push(DEBUG_COOKIE);
windowProviderInitializers.unshift(useReportNonNativeFunctionProvider);
}
};

0 comments on commit 05fe65a

Please sign in to comment.