2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2025-02-05 05:28:26 +00:00
2017-07-31 15:51:51 +05:30

18 lines
396 B
JavaScript

/**
* Module exports.
*
* Logic borrowed from Modernizr:
*
* - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cors.js
*/
try {
module.exports = typeof XMLHttpRequest !== 'undefined' &&
'withCredentials' in new XMLHttpRequest();
} catch (err) {
// if XMLHttp support is disabled in IE then it will throw
// when trying to create
module.exports = false;
}