fix: format constructor URL assignment for clarity
This commit is contained in:
1 parent
a37eb14ba5
commit
1dd858aadd
1 file changed
+2
-1
@@ -20,7 +20,8 @@ export class NetworkClient {
|
||||
private reconnecting = false;
|
||||
|
||||
constructor(url?: string) {
|
||||
this.url = url || import.meta.env.VITE_WS_URL || "ws://localhost:3001";
|
||||
this.url =
|
||||
url || (import.meta as any).env.VITE_WS_URL || "ws://localhost:3001";
|
||||
}
|
||||
|
||||
connect(): Promise<void> {
|
||||
|
||||
Reference in new issue
Block a user