Skip to content

Commit

Permalink
Adapt HID API to new events structure (#15154)
Browse files Browse the repository at this point in the history
This PR adapts the HID API to conform to the new events structure.

Note: there are no MDN pages associated with this event, so there will be no corresponding content PR. Any broken MDN URLs in BCD have been removed.
  • Loading branch information
queengooborg authored Mar 4, 2022
1 parent fcb8803 commit 6904276
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions api/HID.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"deprecated": false
}
},
"getDevices": {
"connect_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HID/getDevices",
"spec_url": "https://wicg.github.io/webhid/#dom-hid-getdevices",
"description": "<code>connect</code> event",
"spec_url": "https://wicg.github.io/webhid/#dom-hid-onconnect",
"support": {
"chrome": {
"version_added": "89"
Expand Down Expand Up @@ -97,10 +97,10 @@
}
}
},
"onconnect": {
"disconnect_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HID/onconnect",
"spec_url": "https://wicg.github.io/webhid/#dom-hid-onconnect",
"description": "<code>disconnect</code> event",
"spec_url": "https://wicg.github.io/webhid/#dom-hid-ondisconnect",
"support": {
"chrome": {
"version_added": "89"
Expand Down Expand Up @@ -146,10 +146,10 @@
}
}
},
"ondisconnect": {
"getDevices": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HID/ondisconnect",
"spec_url": "https://wicg.github.io/webhid/#dom-hid-ondisconnect",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/HID/getDevices",
"spec_url": "https://wicg.github.io/webhid/#dom-hid-getdevices",
"support": {
"chrome": {
"version_added": "89"
Expand Down

0 comments on commit 6904276

Please sign in to comment.