diff --git a/src/drivers/webextension/js/inject.js b/src/drivers/webextension/js/inject.js
index <HASH>..<HASH> 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
Fix error in console need to check type before call hasOwnProperty

Look at this <URL>