| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,11 +233,7 @@ void handleRoot(HTTPRequest * req, HTTPResponse * res) { | |||
| 233 | 233 | " txtName.disabled = true;\n" | |
| 234 | 234 | " this.name = txtName.value;\n" | |
| 235 | 235 | " btnConnect.innerHTML = \"Connecting...\";\n" | |
| 236 | - " this.ws = new WebSocket(\"wss://" | ||
| 237 | - ); | ||
| 238 | - res->print(WiFi.localIP()); | ||
| 239 | - res->print( | ||
| 240 | - "/chat\");\n" | ||
| 236 | + " this.ws = new WebSocket(\"wss://\" + document.location.host + \"/chat\");\n" | ||
| 241 | 237 | " this.ws.onopen = e => {\n" | |
| 242 | 238 | " this.connecting = false;\n" | |
| 243 | 239 | " this.connected = true;\n" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments