aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-04-17 01:52:46 +0200
committerVendicated <vendicated@riseup.net>2023-04-17 01:52:46 +0200
commite767da4b08368d6c1cf7ea250dda36d6a4bbfc82 (patch)
tree6268c8ed95b42c140eeb8cf9a7edad1bcae72bb5 /src/plugins
parente4f3f57a28d772102a14281a2d472c3665c090d4 (diff)
downloadVencord-e767da4b08368d6c1cf7ea250dda36d6a4bbfc82.tar.gz
Vencord-e767da4b08368d6c1cf7ea250dda36d6a4bbfc82.tar.bz2
Vencord-e767da4b08368d6c1cf7ea250dda36d6a4bbfc82.zip
Fix errors on setups with no SpeechSynthesis support (part 2)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/vcNarrator.tsx2
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