Skip to content

Commit

Permalink
Merge pull request #520 from Microsoft/disableAjax
Browse files Browse the repository at this point in the history
Disable Ajax monitoring in IE8 or older
  • Loading branch information
Kamil Szostak authored Sep 14, 2017
2 parents ab494d1 + 010cdad commit c5cbccf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions JavaScript/JavaScriptSDK/ajax/ajax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ module Microsoft.ApplicationInsights {
result = false;
}

// disable in IE8 or older (https://www.w3schools.com/jsref/jsref_trim_string.asp)
try {
" a ".trim();
} catch (ex) {
result = false;
}

return result;
}

Expand Down

0 comments on commit c5cbccf

Please sign in to comment.