From df2739ea1d21fc762947f302eb463d1dfa29ecd3 Mon Sep 17 00:00:00 2001 From: loicraux Date: Mon, 11 Sep 2023 20:24:28 +0200 Subject: [PATCH] docs: Fix registerScheme snippet (#5635) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #5634 Co-authored-by: Loïc Raux --- CONTRIBUTORS | 1 + docs/tutorials/faq.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c70b119a6a..c742646887 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -80,6 +80,7 @@ Jun Hong Chong Jürgen Kartnaller Konstantin Grushetsky Leandro Ribeiro Moreira +Loïc Raux Lucas Gabriel Sánchez Martin Stark Matias Russitto diff --git a/docs/tutorials/faq.md b/docs/tutorials/faq.md index 6e5fed51cc..8339bc17e7 100644 --- a/docs/tutorials/faq.md +++ b/docs/tutorials/faq.md @@ -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); ```