welsonjs/node_modules/modernizr/feature-detects/xdomainrequest.js

19 lines
459 B
JavaScript

/*!
{
"name": "XDomainRequest",
"property": "xdomainrequest",
"tags": ["cors", "xdomainrequest", "ie9", "ie8"],
"authors": ["Ivan Pan (@hypotenuse)"],
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/Web/API/XDomainRequest"
}]
}
!*/
/* DOC
Detects support for XDomainRequest in IE9 & IE8
*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('xdomainrequest', 'XDomainRequest' in window);
});