From e767da4b08368d6c1cf7ea250dda36d6a4bbfc82 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 17 Apr 2023 01:52:46 +0200 Subject: [PATCH] Fix errors on setups with no SpeechSynthesis support (part 2) --- src/plugins/vcNarrator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vcNarrator.tsx b/src/plugins/vcNarrator.tsx index ee5c0d48..f55f639c 100644 --- a/src/plugins/vcNarrator.tsx +++ b/src/plugins/vcNarrator.tsx @@ -217,7 +217,7 @@ export default definePlugin({ voice: { type: OptionType.SELECT, description: "Narrator Voice", - options: speechSynthesis?.getVoices().map(v => ({ + options: window.speechSynthesis?.getVoices().map(v => ({ label: v.name, value: v.voiceURI, default: v.default