Init. Map does not function and only working on backend at the moment.
This commit is contained in:
17
node_modules/has-cors/index.js
generated
vendored
Normal file
17
node_modules/has-cors/index.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
Reference in New Issue
Block a user