Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Always attach a TelemetryDeck SDK instance to window#8

Merged
winsmith merged 2 commits into
mainTelemetryDeck/JavaScriptSDK:mainfrom
sdk-loadingTelemetryDeck/JavaScriptSDK:sdk-loadingCopy head branch name to clipboard
Mar 23, 2022
Merged

Always attach a TelemetryDeck SDK instance to window#8
winsmith merged 2 commits into
mainTelemetryDeck/JavaScriptSDK:mainfrom
sdk-loadingTelemetryDeck/JavaScriptSDK:sdk-loadingCopy head branch name to clipboard

Conversation

@pichfl
Copy link
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.