Skip to content

Commit

Permalink
LOG-16358 use request instead of its constructor (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsheng-r7 authored Apr 22, 2021
1 parent a2596f1 commit e8705ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/r7insight.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
var request = _getAjaxObject();

if (_shouldCall) {
if (request.constructor instanceof XMLHttpRequest) {
if (request instanceof XMLHttpRequest) {
// Currently we don't support fine-grained error
// handling in older versions of IE
request.onreadystatechange = function() {
Expand Down

0 comments on commit e8705ed

Please sign in to comment.