Skip to content

Commit b88824d

Browse files
authored
Add 'write' value to FileSystemHandle permission descriptor.mode (mdn#40535)
1 parent bd4faec commit b88824d

File tree

2 files changed

+4
-4
lines changed
  • files/en-us/web/api/filesystemhandle

2 files changed

+4
-4
lines changed

files/en-us/web/api/filesystemhandle/querypermission/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ queryPermission(descriptor)
2525
- `descriptor` {{optional_inline}}
2626
- : An object which specifies the permission mode to query for. Options are as follows:
2727
- `'mode'` {{optional_inline}}
28-
- : Can be either `'read'` or `'readwrite'`.
28+
- : Can be either `'read'`, `'write'`, or `'readwrite'`.
2929

3030
### Return value
3131

@@ -42,7 +42,7 @@ the user revoking permission, a handle retrieved from IndexedDB is also likely t
4242

4343
- {{jsxref("TypeError")}}
4444
- : Thrown if `mode` is specified with a value other than
45-
`'read'` or `'readwrite'`
45+
`'read'`, `'write'`, or `'readwrite'`
4646

4747
## Examples
4848

files/en-us/web/api/filesystemhandle/requestpermission/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ requestPermission(descriptor)
2525
- `descriptor` {{optional_inline}}
2626
- : An object which specifies the permission mode to query for. Options are as follows:
2727
- `'mode'` {{optional_inline}}
28-
- : Can be either `'read'` or `'readwrite'`.
28+
- : Can be either `'read'`, `'write'`, or `'readwrite'`.
2929

3030
### Return value
3131

@@ -35,7 +35,7 @@ A {{jsxref("Promise")}} that resolves with {{domxref('PermissionStatus.state')}}
3535

3636
- {{jsxref("TypeError")}}
3737
- : Thrown if no parameter is specified or the `mode` is not that of
38-
`'read'` or `'readwrite'`
38+
`'read'`, `'write'`, or `'readwrite'`
3939
- `SecurityError` {{domxref("DOMException")}}
4040
- : Thrown in one of the following cases:
4141
- The method was called in a context that's not [same-origin](/en-US/docs/Web/Security/Same-origin_policy) as the top-level context (i.e., a cross-origin iframe).

0 commit comments

Comments
 (0)