Skip to content

Commit

Permalink
USB events: on(dis)connect -> (dis)connect_event (#13886)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elchi3 authored Jan 5, 2022
1 parent 5e12a8a commit db346f2
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions api/USB.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@
"deprecated": false
}
},
"getDevices": {
"connect_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/getDevices",
"spec_url": "https://wicg.github.io/webusb/#ref-for-dom-usb-getdevices②",
"description": "<code>connect</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/connect_event",
"spec_url": [
"https://wicg.github.io/webusb/#connect",
"https://wicg.github.io/webusb/#ref-for-dom-usb-onconnect"
],
"support": {
"chrome": {
"version_added": "61"
Expand Down Expand Up @@ -97,10 +101,14 @@
}
}
},
"onconnect": {
"disconnect_event": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/onconnect",
"spec_url": "https://wicg.github.io/webusb/#ref-for-dom-usb-onconnect",
"description": "<code>disconnect</code> event",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/disconnect_event",
"spec_url": [
"https://wicg.github.io/webusb/#disconnect",
"https://wicg.github.io/webusb/#ref-for-dom-usb-ondisconnect"
],
"support": {
"chrome": {
"version_added": "61"
Expand Down Expand Up @@ -146,10 +154,10 @@
}
}
},
"ondisconnect": {
"getDevices": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/ondisconnect",
"spec_url": "https://wicg.github.io/webusb/#ref-for-dom-usb-ondisconnect",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/USB/getDevices",
"spec_url": "https://wicg.github.io/webusb/#ref-for-dom-usb-getdevices②",
"support": {
"chrome": {
"version_added": "61"
Expand Down

0 comments on commit db346f2

Please sign in to comment.