Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: window object should only be used on browser side #1178

Merged
merged 1 commit into from
Jun 3, 2022

Conversation

Eisie96
Copy link
Contributor

@Eisie96 Eisie96 commented Jun 2, 2022

PR Type

[x] Refactoring (no functional changes, no API changes)

What Is the Current Behavior?

If the tracking extension is enabled AND for some reason the cookies consent check is removed (project customization to use a different cookies consent management tool), then the tracking-config.effect.ts will use the window object on server side if a gtmToken is found.

What Is the New Behavior?

Making sure that the window object is only used on browser side independent from the potentially removed cookies consent handling.

Does this PR Introduce a Breaking Change?

[x] No

Other Information

AB#77211

@Eisie96 Eisie96 self-assigned this Jun 2, 2022
@Eisie96 Eisie96 requested a review from MaxKless June 2, 2022 13:36
@shauke shauke added this to the 2.4 milestone Jun 3, 2022
@shauke shauke force-pushed the fix/window-tracking-effect branch from 08fc327 to cd4ddff Compare June 3, 2022 06:11
@shauke shauke merged commit 1b9fc1b into develop Jun 3, 2022
@shauke shauke deleted the fix/window-tracking-effect branch June 3, 2022 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants