Skip to content

Always attach a TelemetryDeck SDK instance to window #8

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

Merged
merged 2 commits into from
Mar 23, 2022
Merged

Conversation

pichfl
Copy link
Collaborator

@pichfl pichfl commented Mar 23, 2022

The previous behavior lead to a bug uncovered in #5: The SDK was only attached to window.td if the latter was already defined, which is not the case if window.td is defined in a deferred script.

We have no automatic tests for this behavior at the moment as Jest wouldn't allow us to do so. We should probably introduce some e2e testing solution like Playwright or Cypress in the future.

@pichfl pichfl added the bug Something isn't working label Mar 23, 2022
@winsmith winsmith merged commit 2b8771d into main Mar 23, 2022
@winsmith winsmith deleted the sdk-loading branch March 23, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants