From cfad64365a9cf72b7172493a0774bc7249041b47 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Sun, 1 Aug 2021 08:51:00 +1000 Subject: [PATCH] Fix for XHR detection in WebExtension --- src/drivers/webextension/js/driver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index df532b063..a8e614324 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -408,7 +408,7 @@ const Driver = { xhrDebounce.splice(xhrDebounce.indexOf(hostname), 1) Driver.onDetect( - request.originUrl, + request.originUrl || request.initiator, await analyze({ xhr: hostname }) ).catch(Driver.error) }, 1000)