Skip to content

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
Development

Successfully merging this pull request may close these issues.

2 participants