From 7dd3c3d271024c29ce5a9b122f8d6cc51d109f2a Mon Sep 17 00:00:00 2001 From: "darryn.campbell" Date: Wed, 19 Apr 2023 08:38:35 +0100 Subject: [PATCH] Avoid continuous 'listen' loop if two or more tabs are open at the same time --- js/subtitles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/subtitles.js b/js/subtitles.js index 54d25b2..e36efdc 100644 --- a/js/subtitles.js +++ b/js/subtitles.js @@ -62,7 +62,7 @@ async function main() { // Continuous Listening spoken.listen.on.end(listen); - spoken.listen.on.error(listen); + spoken.listen.on.error(spoken.listen.on.end({})); // Search Giphy Image spoken.listen.on.partial(candidate);