From c0d30cb451c17746adc08da7050bca5adc623251 Mon Sep 17 00:00:00 2001 From: Nathan Stitt Date: Fri, 28 Jul 2023 17:07:16 -0500 Subject: [PATCH] Remove spurious ) in README.md I copy & pasted and Typescript pointed out some typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e175576..20e11ba0 100644 --- a/README.md +++ b/README.md @@ -297,11 +297,11 @@ if (prediction && prediction.urls && prediction.urls.stream) { console.log("output", e.data); }); - source.addEventListener("error"), (e) => { + source.addEventListener("error", (e) => { console.error("error", JSON.parse(e.data)); }); - source.addEventListener("done"), (e) => { + source.addEventListener("done", (e) => { source.close(); console.log("done", JSON.parse(e.data)); });