Sha256: b9251dcf3c010d077ba9034a119e2829b568760d8e2956aaee0043502f60c898
Contents?: true
Size: 458 Bytes
Versions: 88
Compression:
Stored size: 458 Bytes
Contents
/** * Module dependencies. */ var global = require('global'); /** * Module exports. * * Logic borrowed from Modernizr: * * - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cors.js */ try { module.exports = 'XMLHttpRequest' in global && 'withCredentials' in new global.XMLHttpRequest(); } catch (err) { // if XMLHttp support is disabled in IE then it will throw // when trying to create module.exports = false; }
Version data entries
88 entries across 88 versions & 2 rubygems