Skip to content

Commit 541623f

Browse files
committed
Remove optional chaining to support older Node.js versions
1 parent 2ae8e93 commit 541623f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/vendor/supports-color/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const level = (() => {
88

99
if (globalThis.navigator.userAgentData) {
1010
const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
11-
if (brand?.version > 93) {
11+
if (brand && brand.version > 93) {
1212
return 3;
1313
}
1414
}

0 commit comments

Comments
 (0)