diff --git a/index.html b/index.html
index 774ca61..4287f3b 100644
--- a/index.html
+++ b/index.html
@@ -171,12 +171,12 @@
} from './hug.js'
import { Socket } from "./phoenix.esm.js"
+ let params = new URLSearchParams(window.location.search);
var socket;
let reconnect = () => {
if (socket) {
socket.disconnect();
}
- let params = new URLSearchParams(window.location.search);
if (params.get("local")) {
socket = new Socket("ws://localhost:4000/socket", { params: {} })
} else {