Commit a16643b
authored
Fix stale requestFileHandles() call in Cross-Origin Storage docs (#27585)
The `instantiateWasm` example in
`site/source/docs/compiling/CrossOriginStorage.rst` called
`navigator.crossOriginStorage.requestFileHandles(cosHash)` with a bare
hash and then treated the result as a single `FileSystemFileHandle`
(`.then(handle => handle.getFile())`).
The API is `requestFileHandle()` (singular). The plural form was an
early draft that took an array of hashes and returned an array of
handles; it was [removed in favor of the singular
form](WICG/cross-origin-storage#61). The rest
of this document — and the actual implementation in `src/preamble.js` —
already use the singular form, so this example was the only stale call
site.
Docs-only, one line.1 parent d0d3829 commit a16643b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| |||
0 commit comments