diff --git a/lib/utils/makeRequest.js b/lib/utils/makeRequest.js index fa1327027..ebb6fb336 100644 --- a/lib/utils/makeRequest.js +++ b/lib/utils/makeRequest.js @@ -5,9 +5,9 @@ function xmlHttpRequest() { if (typeof XMLHttpRequest !== 'undefined') { return new XMLHttpRequest(); } - + pretendingNotToRequire = require; var module = 'xmlhttprequest'; - var request = require(module).XMLHttpRequest; + var request = pretendingNotToRequire(module).XMLHttpRequest; return new request(); }