From f5f610da579de4e988047d75f0d72aa066f61ea9 Mon Sep 17 00:00:00 2001 From: Keith Ito Date: Sat, 5 May 2018 12:20:40 -0700 Subject: [PATCH] Fix bug in error path of demo server javascript --- demo_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''