From e4f06440fb4e9338ea9ee62bb4e2336a4415f3f8 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Tue, 30 May 2023 12:35:43 +0200 Subject: [PATCH] fix bug --- api/views/index.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views/index.ejs b/api/views/index.ejs index 282b54e3..3a30942b 100644 --- a/api/views/index.ejs +++ b/api/views/index.ejs @@ -157,7 +157,7 @@ xhr.overrideMimeType("text/plain; charset=utf-8"); xhr.onload = (e) => { console.log("response image received"); - const img = req.response; + const img = e.response; document.getElementById("picture").src = "data:image/png;base64," + img; } console.log("sending picture request")