Skip to content

Commit

Permalink
LOG-16358 use instanceof instead of strict equal (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsheng-r7 authored Apr 16, 2021
1 parent 4ecb165 commit a2596f1
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 === XMLHttpRequest) {
if (request.constructor 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 a2596f1

Please sign in to comment.