Closed ghost closed 7 years ago
_createXHRObject Error in Web Worker
Can be simply fixed:
function _createXHRObject() { return new XMLHttpRequest(); };
But this would disable node XHR2
And if you want to require XHR2, then this is the right way:
var NXMLHttpRequest = require('xhr2'); var xhr = new NXMLHttpRequest();
return xhr;
_createXHRObject Error in Web Worker
Can be simply fixed:
function _createXHRObject() { return new XMLHttpRequest();
};
But this would disable node XHR2