From 6ff8cc1455118401d6f70cfd9de4a62b50439758 Mon Sep 17 00:00:00 2001 From: rsheng Date: Thu, 22 Apr 2021 16:33:30 +0100 Subject: [PATCH] LOG-16358 use request instead of its constructor --- src/r7insight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r7insight.js b/src/r7insight.js index cccea90..1b6e6a5 100644 --- a/src/r7insight.js +++ b/src/r7insight.js @@ -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() {