johnmichel / Library-Detector-for-Chrome

🔍 Extension that detects which JavaScript libraries are running on a page
https://chrome.google.com/webstore/detail/cgaocdmhkmfnkdkbnckgmpopcbpaaejo
MIT License
662 stars 111 forks source link

Fix React detection #123

Closed developit closed 5 years ago

developit commented 5 years ago

This addresses the case where there are no attribute indicators present in the DOM, which results in a scan for _reactRootContainer properties. It was erroneously only scanning Text nodes, when it should have been scanning Elements.

johnmichel commented 5 years ago

LGTM.

Thanks!