From bed2246fd3e0f24ce5107b7d09927dbcbc0345ec Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 3 Oct 2021 11:39:45 -0700 Subject: [PATCH] Handle unhandled message --- frontend/src/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/app.js b/frontend/src/app.js index 7c77bac..fdd2549 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -334,6 +334,11 @@ async function main() { break; } return; + case "langConfig": + // We could use this message instead of hardcoding the + // language config into the HTML page returned from the + // server, but for now we just ignore it. + return; default: console.error("Unexpected message from server:", message); return;