Remove optional chaining to support older Node.js versions

This commit is contained in:
Edwin Kofler 2024-12-21 05:01:11 -08:00
parent 2ae8e93d53
commit 541623f241
No known key found for this signature in database
GPG key ID: A1E60C1F1A423B08

View file

@ -8,7 +8,7 @@ const level = (() => {
if (globalThis.navigator.userAgentData) {
const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
if (brand?.version > 93) {
if (brand && brand.version > 93) {
return 3;
}
}