From d09a87b814bdce2b2b913fd1a01be69a8b12532c Mon Sep 17 00:00:00 2001 From: Julien <59737586+Julien-ADDREA@users.noreply.github.com> Date: Sat, 22 Aug 2020 23:07:21 +0200 Subject: [PATCH] Fix error in console need to check type before call hasOwnProperty Look at this https://i.imgur.com/v2lpTuk.png --- src/drivers/webextension/js/inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/webextension/js/inject.js b/src/drivers/webextension/js/inject.js index 8ae4bd77e..61161580f 100644 --- a/src/drivers/webextension/js/inject.js +++ b/src/drivers/webextension/js/inject.js @@ -19,7 +19,7 @@ .split('.') .reduce( (value, method) => - value && value.hasOwnProperty(method) + value && value instanceof Object && value.hasOwnProperty(method) ? value[method] : undefined, window