Skip to content

Commit

Permalink
Merge pull request keithito#166 from keithito/demo-server
Browse files Browse the repository at this point in the history
Fix bug in error path of demo server javascript
  • Loading branch information
keithito authored May 5, 2018
2 parents 736e512 + f5f610d commit 1bd3a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
function synthesize(text) {
fetch('/synthesize?text=' + encodeURIComponent(text), {cache: 'no-cache'})
.then(function(res) {
if (!res.ok) throw Error(response.statusText)
if (!res.ok) throw Error(res.statusText)
return res.blob()
}).then(function(blob) {
q('#message').textContent = ''
Expand Down

0 comments on commit 1bd3a63

Please sign in to comment.