Skip to content

Commit

Permalink
Merge pull request Modernizr#1178 from patrickkettner/xhr2forff
Browse files Browse the repository at this point in the history
make xhr2 test more accurate with FF3.6
  • Loading branch information
patrickkettner committed Feb 22, 2014
2 parents 2745cb4 + ee6bf01 commit edb0e97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions feature-detects/network/xhr2.js
Expand Up @@ -19,7 +19,6 @@ Tests for XHR2.
define(['Modernizr'], function( Modernizr ) {
// all three of these details report consistently across all target browsers:
// !!(window.ProgressEvent);
// !!(window.FormData);
// window.XMLHttpRequest && "withCredentials" in new XMLHttpRequest;
Modernizr.addTest('xhr2', 'FormData' in window);
// 'XMLHttpRequest' in window && 'withCredentials' in new XMLHttpRequest
Modernizr.addTest('xhr2', 'XMLHttpRequest' in window && 'withCredentials' in new XMLHttpRequest());
});

0 comments on commit edb0e97

Please sign in to comment.