docs: fix typo in session docs (#40138)

Fix typos for doc

Signed-off-by: zhangdiandian <1635468471@qq.com>
This commit is contained in:
Jade Flute 2023-10-10 18:43:18 +08:00 committed by GitHub
parent 925e4f7d74
commit 47beca1d2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1050,7 +1050,7 @@ To clear the handler, call `setDevicePermissionHandler(null)`.
This handler can be used to provide default permissioning to devices without first calling for permission This handler can be used to provide default permissioning to devices without first calling for permission
to devices (eg via `navigator.hid.requestDevice`). If this handler is not defined, the default device to devices (eg via `navigator.hid.requestDevice`). If this handler is not defined, the default device
permissions as granted through device selection (eg via `navigator.hid.requestDevice`) will be used. permissions as granted through device selection (eg via `navigator.hid.requestDevice`) will be used.
Additionally, the default behavior of Electron is to store granted device permision in memory. Additionally, the default behavior of Electron is to store granted device permission in memory.
If longer term storage is needed, a developer can store granted device If longer term storage is needed, a developer can store granted device
permissions (eg when handling the `select-hid-device` event) and then read from that storage with `setDevicePermissionHandler`. permissions (eg when handling the `select-hid-device` event) and then read from that storage with `setDevicePermissionHandler`.