From 44471cfb348bf4ad836a229548eab522fb3d9ab4 Mon Sep 17 00:00:00 2001 From: Julien <59737586+Julien-ADDREA@users.noreply.github.com> Date: Sun, 23 Aug 2020 02:07:08 +0200 Subject: [PATCH] Update to pass Travis build --- src/drivers/webextension/js/inject.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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