Skip to content

Commit

Permalink
Fixed structured argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Oct 14, 2024
1 parent 09a8af9 commit da4dc08
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 @@ -1596,7 +1596,7 @@ exports.parseUA = function(headers, structured) {
return structured ? { os: platform, browser: browser, device: mobile ? 'mobile' : 'desktop' } : ((platform ? (platform + ' ') : '') + browser + (mobile ? ' Mobile' : ''));
} else {
ua = (headers['user-agent'] || '');
return ua ? ua.parseUA() : ua;
return ua ? ua.parseUA(structured) : ua;
}
};

Expand Down

0 comments on commit da4dc08

Please sign in to comment.