Merge pull request #513 from Microsoft/ajaxHotFix
Hotfix for ajax exception
This commit is contained in:
Коммит
0354aa7cc9
|
@ -56,9 +56,13 @@ module Microsoft.ApplicationInsights {
|
||||||
///<summary>Determines whether ajax monitoring can be enabled on this document</summary>
|
///<summary>Determines whether ajax monitoring can be enabled on this document</summary>
|
||||||
///<returns>True if Ajax monitoring is supported on this page, otherwise false</returns>
|
///<returns>True if Ajax monitoring is supported on this page, otherwise false</returns>
|
||||||
private supportsMonitoring(): boolean {
|
private supportsMonitoring(): boolean {
|
||||||
var result = false;
|
var result = true;
|
||||||
if (!extensions.IsNullOrUndefined(XMLHttpRequest)) {
|
if (extensions.IsNullOrUndefined(XMLHttpRequest) ||
|
||||||
result = true;
|
extensions.IsNullOrUndefined(XMLHttpRequest.prototype) ||
|
||||||
|
extensions.IsNullOrUndefined(XMLHttpRequest.prototype.open) ||
|
||||||
|
extensions.IsNullOrUndefined(XMLHttpRequest.prototype.send) ||
|
||||||
|
extensions.IsNullOrUndefined(XMLHttpRequest.prototype.abort)) {
|
||||||
|
result = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче