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 &&
value instanceof Object &&
Object.prototype.hasOwnProperty.call(value, method) &&
!(Object.getOwnPropertyDescriptor(value, method) || {}).get
Object.prototype.hasOwnProperty.call(value, method)
? value[method]
: '__UNDEFINED__',
window