Browse Source

Fixed selection of default voice in JS demo

master
Alberto Pettarin 8 years ago
parent
commit
6ce74efeca
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      emscripten/js/demo.js

+ 1
- 1
emscripten/js/demo.js View File

opt.value = voice.identifier; opt.value = voice.identifier;
console.log('Adding voice: ' + opt.text); console.log('Adding voice: ' + opt.text);
sel.add(opt); sel.add(opt);
if (voice.name === 'english') { if (voice.name === 'English (Great Britain)') {
opt.id = 'default-voice'; opt.id = 'default-voice';
opt.selected = true; opt.selected = true;
} }

Loading…
Cancel
Save