mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-04 03:11:40 +00:00
TypeCheck Frontend (#2394)
We recently had an error that would've been caught by type checking in the frontend (see #2393). This PR implements type checking so that future errors will be caught. Additionally, this PR contains miscellaneous frontend cleanup that's tangentially related to type-checking.
This commit is contained in:
@@ -11,7 +11,7 @@ const runtimeMode: PhotonClientRuntimeMode = process.env.NODE_ENV as PhotonClien
|
||||
|
||||
let backendHost: string;
|
||||
let backendHostname: string;
|
||||
switch (runtimeMode as PhotonClientRuntimeMode) {
|
||||
switch (runtimeMode) {
|
||||
case "development":
|
||||
backendHost = `${location.hostname}:5800`;
|
||||
backendHostname = location.hostname;
|
||||
|
||||
Reference in New Issue
Block a user