Skip to content

Commit

Permalink
refactor: avoid redeclaring const in xhr polling transport (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeroxmotion authored Dec 3, 2020
1 parent 091a619 commit c226815
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/transports/polling-xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const debug = require("debug")("engine.io-client:polling-xhr");
function empty() {}

const hasXHR2 = (function() {
const XMLHttpRequest = require("xmlhttprequest-ssl");
const xhr = new XMLHttpRequest({ xdomain: false });
return null != xhr.responseType;
})();
Expand Down

0 comments on commit c226815

Please sign in to comment.