diff --git a/demo_server.py b/demo_server.py index 5d83a21..decea23 100644 --- a/demo_server.py +++ b/demo_server.py @@ -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 = ''