Skip to content

Commit f1475a4

Browse files
authored
Merge pull request #3 from cross-org/copilot/check-low-hanging-fixes
Fix swapped function assignments in README User Agent example
2 parents 11fbf88 + bff9164 commit f1475a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ import {
5656

5757
const ua = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36";
5858

59-
const os = getVersionFromUserAgent(ua);
59+
const os = getOSFromUserAgent(ua);
6060
const product = getProductFromUserAgent(ua);
61-
const version = getOSFromUserAgent(ua);
61+
const version = getVersionFromUserAgent(ua);
6262

6363
console.log(`OS: ${os}`);
6464
console.log(`Product: ${product}`);

0 commit comments

Comments
 (0)