From 47beca1d2af622ffe33a0c5261f1e54cae40cdbb Mon Sep 17 00:00:00 2001 From: Jade Flute <35321989+JadeFlute0127@users.noreply.github.com> Date: Tue, 10 Oct 2023 18:43:18 +0800 Subject: [PATCH] docs: fix typo in session docs (#40138) Fix typos for doc Signed-off-by: zhangdiandian <1635468471@qq.com> --- docs/api/session.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/session.md b/docs/api/session.md index 4a77828fac..8eb65c582d 100644 --- a/docs/api/session.md +++ b/docs/api/session.md @@ -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 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. -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 permissions (eg when handling the `select-hid-device` event) and then read from that storage with `setDevicePermissionHandler`.