Handle unhandled message

This commit is contained in:
Radon Rosborough 2021-10-03 11:39:45 -07:00
parent 1c8b0e1452
commit bed2246fd3
1 changed files with 5 additions and 0 deletions

View File

@ -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;