Skip to content

Commit

Permalink
make xhr2 test more accurate with FF3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner committed Feb 22, 2014
1 parent 6f0d6dd commit ee6bf01
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 ee6bf01

Please sign in to comment.