diff --git a/src/drivers/webextension/js/inject.js b/src/drivers/webextension/js/inject.js index 61161580f..f658f7eb5 100644 --- a/src/drivers/webextension/js/inject.js +++ b/src/drivers/webextension/js/inject.js @@ -19,7 +19,9 @@ .split('.') .reduce( (value, method) => - value && value instanceof Object && value.hasOwnProperty(method) + value && + value instanceof Object && + value.hasOwnProperty(method) ? value[method] : undefined, window