Skip to content

Commit

Permalink
Remove blank spaces to work with some version of Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Jun 13, 2016
1 parent 8eecf95 commit 45162e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collective/texttospeech/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ var MainView = (function() {
}
} else {
responsiveVoice.speak(
$('#content').text(),
// For some firefox we need to take out the spaces
$('#content').text().replace(/\s+/g, ' ').trim(),
this.voice, {
onstart: $.proxy(this.onstart, this),
onend: $.proxy(this.onend, this)
Expand Down

0 comments on commit 45162e0

Please sign in to comment.