docs: fix typing of session.setDevicePermissionHandler (#38279)

docs: fix typing of session.setDevicePermissionHandler (#38188)
This commit is contained in:
David Sanders
2023-05-14 06:01:02 -07:00
committed by GitHub
parent 0eb53be29a
commit e6dc9825cc
2 changed files with 2 additions and 2 deletions

View File

@@ -920,7 +920,7 @@ Passing `null` instead of a function resets the handler to its default state.
* `details` Object
* `deviceType` string - The type of device that permission is being requested on, can be `hid`, `serial`, or `usb`.
* `origin` string - The origin URL of the device permission check.
* `device` [HIDDevice](structures/hid-device.md) | [SerialPort](structures/serial-port.md)- the device that permission is being requested for.
* `device` [HIDDevice](structures/hid-device.md) | [SerialPort](structures/serial-port.md) | [USBDevice](structures/usb-device.md) - the device that permission is being requested for.
Sets the handler which can be used to respond to device permission checks for the `session`.
Returning `true` will allow the device to be permitted and `false` will reject it.