Skip to content

Commit

Permalink
Revert "Improve browser detection (chalk#542)"
Browse files Browse the repository at this point in the history
This reverts commit b17d862.
  • Loading branch information
heinhtetau committed Jul 4, 2022
1 parent ba5c385 commit ecd2a8a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/vendor/supports-color/browser.js
@@ -1,8 +1,6 @@
/* eslint-env browser */

const isBlinkBasedBrowser = navigator.userAgentData
? navigator.userAgentData.brands.some(({brand}) => brand === 'Chromium')
: /\b(Chrome|Chromium)\//.test(navigator.userAgent);
const isBlinkBasedBrowser = /\b(Chrome|Chromium)\//.test(navigator.userAgent);

const colorSupport = isBlinkBasedBrowser ? {
level: 1,
Expand Down

0 comments on commit ecd2a8a

Please sign in to comment.