Fix webextension `js` detection

main
Ostap Brehin 2 years ago committed by GitHub
parent 4f56076808
commit 856707534c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,8 +19,7 @@
(value, method) => (value, method) =>
value && value &&
value instanceof Object && value instanceof Object &&
Object.prototype.hasOwnProperty.call(value, method) && Object.prototype.hasOwnProperty.call(value, method)
!(Object.getOwnPropertyDescriptor(value, method) || {}).get
? value[method] ? value[method]
: '__UNDEFINED__', : '__UNDEFINED__',
window window