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