From db346f22cb368060bb895e5f103dd95458cf3896 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Wed, 5 Jan 2022 09:52:35 +0100 Subject: [PATCH] USB events: on(dis)connect -> (dis)connect_event (#13886) --- api/USB.json | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/api/USB.json b/api/USB.json index 6163d3b18127f0..074e8a46894fa5 100644 --- a/api/USB.json +++ b/api/USB.json @@ -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": "connect 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" @@ -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": "disconnect 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" @@ -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"