aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-10 13:51:47 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-18 14:23:34 -0400
commit823c026533dcd758c2a93038fa526978a5fa9cc3 (patch)
tree933c454f51e10e664a45488f887fcd31ce4fbae9 /ext/bg/js
parent7fc3882607f48bb9371649ceacddf2fe278282d2 (diff)
Remove de/structuring from public API
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/settings/audio.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/settings/audio.js b/ext/bg/js/settings/audio.js
index e9aa72e1..68dfe71e 100644
--- a/ext/bg/js/settings/audio.js
+++ b/ext/bg/js/settings/audio.js
@@ -110,7 +110,7 @@ function textToSpeechTest() {
const text = document.querySelector('#text-to-speech-voice-test').dataset.speechText || '';
const voiceUri = document.querySelector('#text-to-speech-voice').value;
- const audio = audioSystem.createTextToSpeechAudio({text, voiceUri});
+ const audio = audioSystem.createTextToSpeechAudio(text, voiceUri);
audio.volume = 1.0;
audio.play();
} catch (e) {