Skip to content

Commit

Permalink
Fixed grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Oct 14, 2024
1 parent ebba850 commit 241f01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ exports.parseUA = function(headers, structured) {
let mobile = headers['sec-ch-ua-mobile'] === '?1';
let index = ua.indexOf('";v');
let browser = ua.substring(1, index);
return structured ? { os: platform, browser: browser, device: mobile ? 'mobile' : 'desktop' } : (platfrom + ' ' + browser + (mobile ? ' Mobile' : '')).trim();
return structured ? { os: platform, browser: browser, device: mobile ? 'mobile' : 'desktop' } : (platform + ' ' + browser + (mobile ? ' Mobile' : '')).trim();
} else {
ua = (headers['user-agent'] || '');
return ua ? ua.parseUA() : ua;
Expand Down

0 comments on commit 241f01b

Please sign in to comment.