Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Remove WebHID requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Mar 10, 2021
1 parent 7ffd0e1 commit 610c3fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/chromium-detector.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ const descriptors = {
{
url: 'https://chromestatus.com/feature/5172464636133376',
name: 'WebHID support',
optional: true, // Mobile devices
test: () => isObject(window.navigator.hid)
},
{
url: 'https://chromestatus.com/feature/6577673212002304',
name: 'Web Serial API',
optional: true, // Brave doesn't implement this
optional: true, // Mobile devices & Brave
test: () => isObject(window.navigator.serial)
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chromium-detector",
"version": "1.0.4",
"version": "1.0.5",
"description": "Feature detects the running version of Chromium without any UserAgent parsing",
"main": "dist/chromium-detector.js",
"module": "index.js",
Expand Down

0 comments on commit 610c3fc

Please sign in to comment.