UNPKG

faux-jax-tulios

Version:

Fork using latest mitm for node 10 - Intercept and respond to requests in the browser (XMLHttpRequest, XDomainRequest) and Node.js (http(s) module)

12 lines (8 loc) 213 B
var support = require('./support'); var native = module.exports = {}; if (support.xhr) { native.XMLHttpRequest = global.XMLHttpRequest; } if (support.xdr) { native.XDomainRequest = global.XDomainRequest; }