diff options
author | Vendicated <vendicated@riseup.net> | 2023-04-17 01:52:46 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-04-17 01:52:46 +0200 |
commit | e767da4b08368d6c1cf7ea250dda36d6a4bbfc82 (patch) | |
tree | 6268c8ed95b42c140eeb8cf9a7edad1bcae72bb5 /src | |
parent | e4f3f57a28d772102a14281a2d472c3665c090d4 (diff) | |
download | Vencord-e767da4b08368d6c1cf7ea250dda36d6a4bbfc82.tar.gz Vencord-e767da4b08368d6c1cf7ea250dda36d6a4bbfc82.tar.bz2 Vencord-e767da4b08368d6c1cf7ea250dda36d6a4bbfc82.zip |
Fix errors on setups with no SpeechSynthesis support (part 2)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/vcNarrator.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcNarrator.tsx b/src/plugins/vcNarrator.tsx index ee5c0d4..f55f639 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 |