Fix errors on setups with no SpeechSynthesis support (part 2)

This commit is contained in:
Vendicated 2023-04-17 01:52:46 +02:00
parent e4f3f57a28
commit e767da4b08
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

@ -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