Skip to content

Commit

Permalink
XDomainRequest: simplify detect per comments in #1566
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Oct 20, 2015
1 parent 0e72175 commit cd6e9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature-detects/xdomainrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
Detects support for XDomainReuqest in ie9 & ie8
*/
define(['Modernizr'], function (Modernizr) {
Modernizr.addTest('xdomainrequest', 'XDomainRequest' in window && typeof XDomainRequest == 'function');
Modernizr.addTest('xdomainrequest', 'XDomainRequest' in window);
});

0 comments on commit cd6e9a1

Please sign in to comment.