fix: feature detection for Google Chrome
fix: feature detection for Google Chrome

Old version did not check if chrome.sockets.* actually exist.
This caused problems with extensions built for Chromium-based browsers
that tried to maintain the single codebase and do feature-detection
at runtime.

License: MIT
Signed-off-by: Marcin Rataj <6cdfec72fd067923c58e78b46bf1c7744ca4cd2f@lidel.org>
feross/chrome-net,feross/chrome-net