Skip to content

Commit

Permalink
Merge pull request #287 from ffaubert/detect-chromeos
Browse files Browse the repository at this point in the history
Add operating system detection for Chrome OS
  • Loading branch information
lancedikson authored Jan 24, 2019
2 parents c5d18a4 + 65988ac commit 382177f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/parser-os.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,14 @@ export default [
};
},
},

/* Chrome OS */
{
test: [/CrOS/],
describe() {
return {
name: 'Chrome OS',
};
},
},
];
3 changes: 2 additions & 1 deletion test/acceptance/useragentstrings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@
browser:
name: "Chrome"
version: "29.0.1547.57"
os: {}
os:
name: "Chrome OS"
platform: {}
engine:
name: "Blink"
Expand Down

0 comments on commit 382177f

Please sign in to comment.