Skip to content

Commit

Permalink
docs: Fix registerScheme snippet (#5635)
Browse files Browse the repository at this point in the history
Fixes #5634

Co-authored-by: Loïc Raux <loicraux@gmail.com>
  • Loading branch information
loicraux and Loïc Raux authored Sep 11, 2023
1 parent 29d9a10 commit df2739e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Jun Hong Chong <chongjunhong@gmail.com>
Jürgen Kartnaller <kartnaller@lovelysystems.com>
Konstantin Grushetsky <github@grushetsky.net>
Leandro Ribeiro Moreira <leandro.ribeiro.moreira@gmail.com>
Loïc Raux <loicraux@gmail.com>
Lucas Gabriel Sánchez <unkiwii@gmail.com>
Martin Stark <martin.stark@eyevinn.se>
Matias Russitto <russitto@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ In other environments, for example Electron, it is appropriate.
In those cases, before Shaka Player loads a manifest, you can register the
existing http plugin for `file://` requests:
```js
shaka.net.NetworkingEngine.registerScheme('file', shaka.net.HttpXHRPlugin);
shaka.net.NetworkingEngine.registerScheme('file', shaka.net.HttpXHRPlugin.parse);
```

<hr>
Expand Down

0 comments on commit df2739e

Please sign in to comment.