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

When loading templates detect if an ad blocker is active #14722

Merged
merged 3 commits into from Aug 4, 2019
Merged

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Aug 2, 2019

fix DEV-1680
The status seems to be -1 when an ad blocker is blocking the loading of an html template (eg HeatmapSessionRecording)

image

Should avoid error like this:

image

fix DEV-1680
The status seems to be -1 when an ad blocker is blocking the loading of an html template (eg HeatmapSessionRecording)
@tsteur tsteur added the Needs Review PRs that need a code review label Aug 2, 2019
@tsteur tsteur added this to the 3.12.0 milestone Aug 2, 2019
@@ -7,7 +7,7 @@

function isClientError(rejection)
{
if (rejection.status === 500) {
if (rejection.status === 500 || rejection.status === -1) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do <= 0 to potentially catch more problems?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Although not sure when it would be 0 or lower than that but we can always change it again later if needed for some reason 👍

@diosmosis diosmosis merged commit c9c7a96 into 3.x-dev Aug 4, 2019
@diosmosis diosmosis deleted the DEV-1680 branch August 4, 2019 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants