Merge pull request #7480 from osbre/patch-1

Fix webextension `js` detection
main
Elbert Alias 2 years ago committed by GitHub
commit 0e80a01e5c
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

Loading…
Cancel
Save