From 6904276fde6e750ca9d6c9e6cb4fe43d6426553f Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Fri, 4 Mar 2022 05:55:47 -0800 Subject: [PATCH] Adapt HID API to new events structure (#15154) 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. --- api/HID.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/HID.json b/api/HID.json index b2df02bff3c30d..7682471e91c75a 100644 --- a/api/HID.json +++ b/api/HID.json @@ -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": "connect event", + "spec_url": "https://wicg.github.io/webhid/#dom-hid-onconnect", "support": { "chrome": { "version_added": "89" @@ -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": "disconnect event", + "spec_url": "https://wicg.github.io/webhid/#dom-hid-ondisconnect", "support": { "chrome": { "version_added": "89" @@ -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"